Selaa lähdekoodia

Changed ParallaxBarrier to use rows as it seems to be more common. Fixes #4077.

Mr.doob 11 vuotta sitten
vanhempi
commit
e1bf2be936
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      examples/js/effects/ParallaxBarrierEffect.js

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

@@ -60,7 +60,7 @@ THREE.ParallaxBarrierEffect = function ( renderer ) {
 
 			"	vec2 uv = vUv;",
 
-			"	if ( ( mod( gl_FragCoord.x, 2.0 ) ) > 1.00 ) {",
+			"	if ( ( mod( gl_FragCoord.y, 2.0 ) ) > 1.00 ) {",
 
 			"		gl_FragColor = texture2D( mapLeft, uv );",