浏览代码

Minor tweak to interactive cubes examples.

Mr.doob 10 年之前
父节点
当前提交
dbb4fc608d
共有 2 个文件被更改,包括 2 次插入10 次删除
  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 ++ ) {