Skip to content

Commit

Permalink
Docs/Editor/Examples: Updated RoomEnvironment sigma.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Mar 25, 2021
1 parent dbbf6f7 commit 8323ee0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions docs/scenes/material-browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -723,12 +723,11 @@
renderer.outputEncoding = THREE.sRGBEncoding;
document.body.appendChild( renderer.domElement );

const environment = new RoomEnvironment();
const pmremGenerator = new THREE.PMREMGenerator( renderer );

const scene = new THREE.Scene();
scene.background = new THREE.Color( 0x444444 );
scene.environment = pmremGenerator.fromScene( environment ).texture;
scene.environment = pmremGenerator.fromScene( new RoomEnvironment(), 0.04 ).texture;

const camera = new THREE.PerspectiveCamera( 70, window.innerWidth / window.innerHeight, 10, 100 );
camera.position.z = 35;
Expand Down
2 changes: 1 addition & 1 deletion editor/js/Viewport.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ function Viewport( editor ) {
scene.environment = pmremTexture;
break;
case 'ModelViewer':
scene.environment = pmremGenerator.fromScene( new RoomEnvironment() ).texture;
scene.environment = pmremGenerator.fromScene( new RoomEnvironment(), 0.04 ).texture;
break;

}
Expand Down
3 changes: 1 addition & 2 deletions examples/webgl_materials_car.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,11 @@
controls.target.set( 0, 0.5, 0 );
controls.update();

const environment = new RoomEnvironment();
const pmremGenerator = new THREE.PMREMGenerator( renderer );

scene = new THREE.Scene();
scene.background = new THREE.Color( 0xeeeeee );
scene.environment = pmremGenerator.fromScene( environment ).texture;
scene.environment = pmremGenerator.fromScene( new RoomEnvironment(), 0.04 ).texture;
scene.fog = new THREE.Fog( 0xeeeeee, 10, 50 );

grid = new THREE.GridHelper( 100, 40, 0x000000, 0x000000 );
Expand Down

0 comments on commit 8323ee0

Please sign in to comment.