Browse Source

Added 1 level or recursion to mirror example.

Mr.doob 7 years ago
parent
commit
982be5c01a
1 changed files with 4 additions and 2 deletions
  1. 4 2
      examples/webgl_mirror.html

+ 4 - 2
examples/webgl_mirror.html

@@ -92,7 +92,8 @@
 					clipBias: 0.003,
 					textureWidth: WIDTH * window.devicePixelRatio,
 					textureHeight: HEIGHT * window.devicePixelRatio,
-					color: 0x777777
+					color: 0x777777,
+					recursion: 1
 				} );
 				groundMirror.rotateX( - Math.PI / 2 );
 				scene.add( groundMirror );
@@ -101,7 +102,8 @@
 					clipBias: 0.003,
 					textureWidth: WIDTH * window.devicePixelRatio,
 					textureHeight: HEIGHT * window.devicePixelRatio,
-					color: 0x889999
+					color: 0x889999,
+					recursion: 1
 				} );
 				verticalMirror.position.y = 35;
 				verticalMirror.position.z = -45;