Parcourir la source

flipped cubemaps

Emmett Lalish il y a 5 ans
Parent
commit
b54a2efd57

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
build/three.js


Fichier diff supprimé car celui-ci est trop grand
+ 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);
 }
      		`,

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff