Browse Source

Minor tweak to interactive cubes examples.

Mr.doob 10 years ago
parent
commit
dbb4fc608d
2 changed files with 2 additions and 10 deletions
  1. 1 5
      examples/webgl_effects_vr.html
  2. 1 5
      examples/webgl_interactive_cubes.html

+ 1 - 5
examples/webgl_effects_vr.html

@@ -72,14 +72,10 @@
 
 
 				scene = new THREE.Scene();
 				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();
 				light.position.set( 1, 1, 1 ).normalize();
 				scene.add( light );
 				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 );
 				var geometry = new THREE.BoxGeometry( 20, 20, 20 );
 
 
 				for ( var i = 0; i < 2000; i ++ ) {
 				for ( var i = 0; i < 2000; i ++ ) {

+ 1 - 5
examples/webgl_interactive_cubes.html

@@ -47,14 +47,10 @@
 
 
 				scene = new THREE.Scene();
 				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();
 				light.position.set( 1, 1, 1 ).normalize();
 				scene.add( light );
 				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 );
 				var geometry = new THREE.BoxGeometry( 20, 20, 20 );
 
 
 				for ( var i = 0; i < 2000; i ++ ) {
 				for ( var i = 0; i < 2000; i ++ ) {