Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/shaders/surface_frag.glsl
| Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | #ifdef LOOKDEV | ||||
| gl_FragDepth = 0.0; | gl_FragDepth = 0.0; | ||||
| #endif | #endif | ||||
| } | } | ||||
| /* Only supported attrib for world/background shaders. */ | /* Only supported attrib for world/background shaders. */ | ||||
| vec3 attr_load_orco(vec4 orco) | vec3 attr_load_orco(vec4 orco) | ||||
| { | { | ||||
| /* Retain precision better than g_data.P (see T99128). */ | /* Retain precision better than g_data.P (see T99128). */ | ||||
| return transform_direction(ViewMatrixInverse, normalize(viewPosition)); | return -normal_view_to_world(viewCameraVec(viewPosition)); | ||||
| } | } | ||||
| /* Unsupported. */ | /* Unsupported. */ | ||||
| vec4 attr_load_tangent(vec4 tangent) | vec4 attr_load_tangent(vec4 tangent) | ||||
| { | { | ||||
| return vec4(0); | return vec4(0); | ||||
| } | } | ||||
| vec4 attr_load_vec4(vec4 attr) | vec4 attr_load_vec4(vec4 attr) | ||||
| { | { | ||||
| Show All 20 Lines | |||||