소스 검색

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 ++ ) {