@@ -37,6 +37,7 @@ class RoomEnvironment extends Scene {
super();
this.name = 'RoomEnvironment';
+ this.position.y = - 3.5;
const geometry = new BoxGeometry();
geometry.deleteAttribute( 'uv' );
@@ -59,7 +59,7 @@
scene = new THREE.Scene();
scene.background = new THREE.Color( 0xbbbbbb );
- scene.environment = pmremGenerator.fromScene( environment ).texture;
+ scene.environment = pmremGenerator.fromScene( environment, 0.04 ).texture;
environment.dispose();
const grid = new THREE.GridHelper( 500, 10, 0xffffff, 0xffffff );
@@ -56,7 +56,7 @@
scene.backgroundBlurriness = 0.5;
- const env = pmremGenerator.fromScene( environment ).texture;
+ const env = pmremGenerator.fromScene( environment, 0.04 ).texture;
scene.background = env;
scene.environment = env;
@@ -80,7 +80,7 @@
const pmremGenerator = new THREE.PMREMGenerator( renderer );
controls = new OrbitControls( camera, renderer.domElement );
controls.enableDamping = true;
@@ -94,7 +94,7 @@
scene.background = new THREE.Color( 0xdeebed );
- scene.environment = pmremGenerator.fromScene( new RoomEnvironment() ).texture;
+ scene.environment = pmremGenerator.fromScene( new RoomEnvironment(), 0.04 ).texture;
@@ -99,7 +99,7 @@
const environment = new RoomEnvironment();
controls.autoRotate = true;
@@ -107,7 +107,7 @@
//
@@ -106,7 +106,7 @@
scene.background = new THREE.Color( 0x666666 );
@@ -120,7 +120,7 @@
const controls = new OrbitControls( camera, renderer.domElement );
@@ -104,7 +104,7 @@
@@ -69,7 +69,7 @@
const ktx2Loader = await new KTX2Loader()
.setTranscoderPath( 'jsm/libs/basis/' )
@@ -96,7 +96,7 @@
pmremGenerator.dispose();
scene.environmentIntensity = 1.25;