|
@@ -86,9 +86,10 @@
|
|
|
|
|
|
var planeGeo = new THREE.PlaneBufferGeometry( 100.1, 100.1 );
|
|
var planeGeo = new THREE.PlaneBufferGeometry( 100.1, 100.1 );
|
|
|
|
|
|
- // reflector/mirror planes
|
|
|
|
|
|
+ // reflectors/mirrors
|
|
|
|
|
|
- var groundMirror = new THREE.Reflector( 100, 100, {
|
|
|
|
|
|
+ var geometry = new THREE.PlaneBufferGeometry( 100, 100 );
|
|
|
|
+ var groundMirror = new THREE.Reflector( geometry, {
|
|
clipBias: 0.003,
|
|
clipBias: 0.003,
|
|
textureWidth: WIDTH * window.devicePixelRatio,
|
|
textureWidth: WIDTH * window.devicePixelRatio,
|
|
textureHeight: HEIGHT * window.devicePixelRatio,
|
|
textureHeight: HEIGHT * window.devicePixelRatio,
|
|
@@ -98,14 +99,15 @@
|
|
groundMirror.rotateX( - Math.PI / 2 );
|
|
groundMirror.rotateX( - Math.PI / 2 );
|
|
scene.add( groundMirror );
|
|
scene.add( groundMirror );
|
|
|
|
|
|
- var verticalMirror = new THREE.Reflector( 60, 60, {
|
|
|
|
|
|
+ var geometry = new THREE.CircleBufferGeometry( 40, 6 );
|
|
|
|
+ var verticalMirror = new THREE.Reflector( geometry, {
|
|
clipBias: 0.003,
|
|
clipBias: 0.003,
|
|
textureWidth: WIDTH * window.devicePixelRatio,
|
|
textureWidth: WIDTH * window.devicePixelRatio,
|
|
textureHeight: HEIGHT * window.devicePixelRatio,
|
|
textureHeight: HEIGHT * window.devicePixelRatio,
|
|
color: 0x889999,
|
|
color: 0x889999,
|
|
recursion: 1
|
|
recursion: 1
|
|
} );
|
|
} );
|
|
- verticalMirror.position.y = 35;
|
|
|
|
|
|
+ verticalMirror.position.y = 50;
|
|
verticalMirror.position.z = -45;
|
|
verticalMirror.position.z = -45;
|
|
scene.add( verticalMirror );
|
|
scene.add( verticalMirror );
|
|
|
|
|