소스 검색

Fix shader

Popov72 5 년 전
부모
커밋
a46ccb8733
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Shaders/ShadersInclude/lightsFragmentFunctions.fx

+ 1 - 1
src/Shaders/ShadersInclude/lightsFragmentFunctions.fx

@@ -113,5 +113,5 @@ lightingInfo computeHemisphericLighting(vec3 viewDirectionW, vec3 vNormal, vec4
 vec3 computeProjectionTextureDiffuseLighting(sampler2D projectionLightSampler, mat4 textureProjectionMatrix){
 	vec4 strq = textureProjectionMatrix * vec4(vPositionW, 1.0);
 	strq /= strq.w;
-	return strq.xy;
+	return strq.xyz;
 }