Jelajahi Sumber

flipped cubemaps

Emmett Lalish 5 tahun lalu
induk
melakukan
b54a2efd57

File diff ditekan karena terlalu besar
+ 0 - 0
build/three.js


File diff ditekan karena terlalu besar
+ 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);
 }
      		`,

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini