Browse Source

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

Jean-François Michaud 7 năm trước cách đây
mục cha
commit
700d5d26c9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;