Browse Source

Merge pull request #8172 from sebavan/master

Fix reflection matrix breaking change in 4.1
sebavan 5 years ago
parent
commit
511db20a71
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Shaders/ShadersInclude/reflectionFunction.fx

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

@@ -113,7 +113,7 @@ vec3 computeProjectionCoords(vec4 worldPos, mat4 view, mat4 reflectionMatrix)
 
 vec3 computeSkyBoxCoords(vec3 positionW, mat4 reflectionMatrix)
 {
-	return vec3(reflectionMatrix * vec4(positionW, 0));
+	return vec3(reflectionMatrix * vec4(positionW, 1.));
 }
 
 #ifdef REFLECTION