2
0
Эх сурвалжийг харах

Examples: Removed SpotLights from webgl_materials_physical_transmission example.

Mr.doob 4 жил өмнө
parent
commit
090982dd22

BIN
examples/screenshots/webgl_materials_physical_transmission.jpg


+ 0 - 20
examples/webgl_materials_physical_transmission.html

@@ -132,18 +132,6 @@
 
 				//
 
-				const spotLight1 = new THREE.SpotLight( 0xffffff, params.lightIntensity );
-				spotLight1.position.set( 100, 200, 100 );
-				spotLight1.angle = Math.PI / 6;
-				scene.add( spotLight1 );
-
-				const spotLight2 = new THREE.SpotLight( 0xffffff, params.lightIntensity );
-				spotLight2.position.set( - 100, - 200, - 100 );
-				spotLight2.angle = Math.PI / 6;
-				scene.add( spotLight2 );
-
-				//
-
 				stats = new Stats();
 				container.appendChild( stats.dom );
 
@@ -208,14 +196,6 @@
 
 					} );
 
-				gui.add( params, 'lightIntensity', 0, 1, 0.01 )
-					.name( 'light intensity' )
-					.onChange( function () {
-
-						spotLight1.intensity = spotLight2.intensity = params.lightIntensity;
-
-					} );
-
 				gui.add( params, 'exposure', 0, 1, 0.01 )
 					.onChange( function () {