Selaa lähdekoodia

Fixed AnaglyphEffect and ParallaxBarrierEffect u flip.

Mr.doob 13 vuotta sitten
vanhempi
commit
4ae795a6d3

+ 1 - 1
examples/js/effects/AnaglyphEffect.js

@@ -43,7 +43,7 @@ THREE.AnaglyphEffect = function ( renderer ) {
 
 			"void main() {",
 
-			"	vUv = vec2( uv.x, 1.0 - uv.y );",
+			"	vUv = vec2( uv.x, uv.y );",
 			"	gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
 
 			"}"

+ 1 - 1
examples/js/effects/ParallaxBarrierEffect.js

@@ -43,7 +43,7 @@ THREE.ParallaxBarrierEffect = function ( renderer ) {
 
 			"void main() {",
 
-			"	vUv = vec2( uv.x, 1.0 - uv.y );",
+			"	vUv = vec2( uv.x, uv.y );",
 			"	gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
 
 			"}"