Browse Source

Docs/Editor/Examples: Updated RoomEnvironment sigma.

Mr.doob 4 năm trước cách đây
mục cha
commit
8323ee0c40

+ 1 - 2
docs/scenes/material-browser.html

@@ -723,12 +723,11 @@
 			renderer.outputEncoding = THREE.sRGBEncoding;
 			renderer.outputEncoding = THREE.sRGBEncoding;
 			document.body.appendChild( renderer.domElement );
 			document.body.appendChild( renderer.domElement );
 
 
-			const environment = new RoomEnvironment();
 			const pmremGenerator = new THREE.PMREMGenerator( renderer );
 			const pmremGenerator = new THREE.PMREMGenerator( renderer );
 
 
 			const scene = new THREE.Scene();
 			const scene = new THREE.Scene();
 			scene.background = new THREE.Color( 0x444444 );
 			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 );
 			const camera = new THREE.PerspectiveCamera( 70, window.innerWidth / window.innerHeight, 10, 100 );
 			camera.position.z = 35;
 			camera.position.z = 35;

+ 1 - 1
editor/js/Viewport.js

@@ -606,7 +606,7 @@ function Viewport( editor ) {
 				scene.environment = pmremTexture;
 				scene.environment = pmremTexture;
 				break;
 				break;
 			case 'ModelViewer':
 			case 'ModelViewer':
-				scene.environment = pmremGenerator.fromScene( new RoomEnvironment() ).texture;
+				scene.environment = pmremGenerator.fromScene( new RoomEnvironment(), 0.04 ).texture;
 				break;
 				break;
 
 
 		}
 		}

+ 1 - 2
examples/webgl_materials_car.html

@@ -79,12 +79,11 @@
 				controls.target.set( 0, 0.5, 0 );
 				controls.target.set( 0, 0.5, 0 );
 				controls.update();
 				controls.update();
 
 
-				const environment = new RoomEnvironment();
 				const pmremGenerator = new THREE.PMREMGenerator( renderer );
 				const pmremGenerator = new THREE.PMREMGenerator( renderer );
 
 
 				scene = new THREE.Scene();
 				scene = new THREE.Scene();
 				scene.background = new THREE.Color( 0xeeeeee );
 				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 );
 				scene.fog = new THREE.Fog( 0xeeeeee, 10, 50 );
 
 
 				grid = new THREE.GridHelper( 100, 40, 0x000000, 0x000000 );
 				grid = new THREE.GridHelper( 100, 40, 0x000000, 0x000000 );