sun_position: Fix T72495 traceback error when trying to activate

Fix by Jean First (robbott) in D6425
This commit is contained in:
Damien Picard 2019-12-17 12:37:40 +01:00
parent 441f30bbe3
commit 95e98889ab
Notes: blender-bot 2023-02-14 19:04:23 +01:00
Referenced by issue #72495, Lighting: sun position
1 changed files with 2 additions and 1 deletions

View File

@ -50,6 +50,7 @@ else:
flat in vec2 v_StartPos;
in vec4 v_VertPos;
out vec4 FragColor;
uniform vec2 u_Resolution;
@ -61,7 +62,7 @@ else:
if (step(sin(dist / 5.0f), 0.0) == 1) discard;
gl_FragColor = u_Color;
FragColor = u_Color;
}
'''