Browse Source

flipped cubemaps

Emmett Lalish 5 years ago
parent
commit
b54a2efd57

File diff suppressed because it is too large
+ 0 - 0
build/three.js


File diff suppressed because it is too large
+ 0 - 0
build/three.module.js


+ 1 - 1
examples/js/pmrem/PMREMGenerator.js

@@ -619,7 +619,7 @@ ${_getEncodings()}
 
 void main() {
 	gl_FragColor = vec4(0.0);
-	gl_FragColor.rgb = envMapTexelToLinear(textureCube(envMap, vOutputDirection)).rgb;
+	gl_FragColor.rgb = envMapTexelToLinear(textureCube(envMap, vec3( - vOutputDirection.x, vOutputDirection.yz ))).rgb;
   	gl_FragColor = linearToOutputTexel(gl_FragColor);
 }
      		`,

+ 1 - 1
examples/jsm/pmrem/PMREMGenerator.js

@@ -645,7 +645,7 @@ ${_getEncodings()}
 
 void main() {
 	gl_FragColor = vec4(0.0);
-	gl_FragColor.rgb = envMapTexelToLinear(textureCube(envMap, vOutputDirection)).rgb;
+	gl_FragColor.rgb = envMapTexelToLinear(textureCube(envMap, vec3( - vOutputDirection.x, vOutputDirection.yz ))).rgb;
   	gl_FragColor = linearToOutputTexel(gl_FragColor);
 }
      		`,

Some files were not shown because too many files changed in this diff