Fix T55423: GLSL compilation error Flat + XRay

This commit is contained in:
Jeroen Bakker 2018-06-10 11:51:07 +02:00
parent a52152c59f
commit 8314be7c89
Notes: blender-bot 2023-02-14 10:32:59 +01:00
Referenced by issue #55423, Flat Lighting + X-Ray Crashes Blender 2.80 #45a5ddb
1 changed files with 2 additions and 0 deletions

View File

@ -42,7 +42,9 @@ void main()
vec2 uv_viewport = gl_FragCoord.xy * invertedViewportSize;
vec3 I_vs = view_vector_from_screen_uv(uv_viewport, viewvecs, ProjectionMatrix);
#ifdef NORMAL_VIEWPORT_PASS_ENABLED
vec3 nor = normalize(normal_viewport);
#endif
#ifdef V3D_LIGHTING_MATCAP
bool flipped = world_data.matcap_orientation != 0;