Merge pull request #22690 from jfmichaud31/fix_gles2_shader

Fix #22591: shader error when shadow enabled
This commit is contained in:
Rémi Verschelde 2018-10-03 20:24:30 +02:00 committed by GitHub
commit 05fe312180
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1630,7 +1630,7 @@ FRAGMENT_SHADER_CODE
highp vec4 splane = shadow_coord; highp vec4 splane = shadow_coord;
float shadow_len = length(splane.xyz); float shadow_len = length(splane.xyz);
splane = normalize(splane.xyz); splane.xyz = normalize(splane.xyz);
vec4 clamp_rect = light_clamp; vec4 clamp_rect = light_clamp;