Parcourir la source

Examples: Remove lights from ibl based scenes in webgl_loader_gltf_extensions example.

Mr.doob il y a 6 ans
Parent
commit
6a1e41772b
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      examples/webgl_loader_gltf_extensions.html

+ 1 - 2
examples/webgl_loader_gltf_extensions.html

@@ -74,7 +74,6 @@
 					authorURL: 'https://www.microsoft.com/',
 					authorURL: 'https://www.microsoft.com/',
 					cameraPos: new THREE.Vector3( 0.02, 0.01, 0.03 ),
 					cameraPos: new THREE.Vector3( 0.02, 0.01, 0.03 ),
 					objectRotation: new THREE.Euler( 0, Math.PI, 0 ),
 					objectRotation: new THREE.Euler( 0, Math.PI, 0 ),
-					addLights: true,
 					extensions: [ 'glTF', 'glTF-pbrSpecularGlossiness', 'glTF-Binary', 'glTF-dds' ],
 					extensions: [ 'glTF', 'glTF-pbrSpecularGlossiness', 'glTF-Binary', 'glTF-dds' ],
 					addEnvMap: true
 					addEnvMap: true
 				},
 				},
@@ -98,7 +97,6 @@
 					authorURL: 'https://twitter.com/emackey',
 					authorURL: 'https://twitter.com/emackey',
 					cameraPos: new THREE.Vector3( 2, 1, 15 ),
 					cameraPos: new THREE.Vector3( 2, 1, 15 ),
 					objectRotation: new THREE.Euler( 0, 0, 0 ),
 					objectRotation: new THREE.Euler( 0, 0, 0 ),
-					addLights: true,
 					extensions: [ 'glTF', 'glTF-Embedded' ],
 					extensions: [ 'glTF', 'glTF-Embedded' ],
 					addEnvMap: true
 					addEnvMap: true
 				},
 				},
@@ -358,6 +356,7 @@
 								 ( node.material.isShaderMaterial && node.material.envMap !== undefined ) ) ) {
 								 ( node.material.isShaderMaterial && node.material.envMap !== undefined ) ) ) {
 
 
 								node.material.envMap = envMap;
 								node.material.envMap = envMap;
+								node.material.envMapIntensity = 1.5; // boombox seems to dark otherwise
 
 
 							}
 							}