Popov72 5 anni fa
parent
commit
a46ccb8733
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;
 }