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

Minor tweak to interactive cubes examples.

Mr.doob 10 жил өмнө
parent
commit
dbb4fc608d

+ 1 - 5
examples/webgl_effects_vr.html

@@ -72,14 +72,10 @@
 
 				scene = new THREE.Scene();
 
-				var light = new THREE.DirectionalLight( 0xffffff, 2 );
+				var light = new THREE.DirectionalLight( 0xffffff, 1 );
 				light.position.set( 1, 1, 1 ).normalize();
 				scene.add( light );
 
-				var light = new THREE.DirectionalLight( 0xffffff );
-				light.position.set( -1, -1, -1 ).normalize();
-				scene.add( light );
-
 				var geometry = new THREE.BoxGeometry( 20, 20, 20 );
 
 				for ( var i = 0; i < 2000; i ++ ) {

+ 1 - 5
examples/webgl_interactive_cubes.html

@@ -47,14 +47,10 @@
 
 				scene = new THREE.Scene();
 
-				var light = new THREE.DirectionalLight( 0xffffff, 2 );
+				var light = new THREE.DirectionalLight( 0xffffff, 1 );
 				light.position.set( 1, 1, 1 ).normalize();
 				scene.add( light );
 
-				var light = new THREE.DirectionalLight( 0xffffff );
-				light.position.set( -1, -1, -1 ).normalize();
-				scene.add( light );
-
 				var geometry = new THREE.BoxGeometry( 20, 20, 20 );
 
 				for ( var i = 0; i < 2000; i ++ ) {