Explorar o código

Fix #22591: shader failed to compile when shadow enabled because of incompatible assignment of vec3 to a vec4.

Jean-François Michaud %!s(int64=7) %!d(string=hai) anos
pai
achega
700d5d26c9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/gles2/shaders/scene.glsl

+ 1 - 1
drivers/gles2/shaders/scene.glsl

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