소스 검색

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

Jean-François Michaud 7 년 전
부모
커밋
700d5d26c9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;