소스 검색

Examples: Improved webgl_materials_variations_toon.

Mr.doob 5 년 전
부모
커밋
062fa1b58b
2개의 변경된 파일2개의 추가작업 그리고 6개의 파일을 삭제
  1. BIN
      examples/screenshots/webgl_materials_variations_toon.jpg
  2. 2 6
      examples/webgl_materials_variations_toon.html

BIN
examples/screenshots/webgl_materials_variations_toon.jpg


+ 2 - 6
examples/webgl_materials_variations_toon.html

@@ -129,13 +129,9 @@
 
 				// Lights
 
-				scene.add( new THREE.AmbientLight( 0x111111 ) );
+				scene.add( new THREE.AmbientLight( 0x888888 ) );
 
-				var directionalLight = new THREE.DirectionalLight( 0xffffff, 1 );
-				directionalLight.position.set( 1, 1, 1 ).normalize();
-				scene.add( directionalLight );
-
-				var pointLight = new THREE.PointLight( 0xffffff, 1.75, 800 );
+				var pointLight = new THREE.PointLight( 0xffffff, 2, 800 );
 				particleLight.add( pointLight );
 
 				//