Explorar o código

Minor tweak to interactive cubes examples.

Mr.doob %!s(int64=10) %!d(string=hai) anos
pai
achega
dbb4fc608d
Modificáronse 2 ficheiros con 2 adicións e 10 borrados
  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();
 
-				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 ++ ) {