浏览代码

Examples: Improved webgl_materials_variations_toon.

Mr.doob 5 年之前
父节点
当前提交
062fa1b58b
共有 2 个文件被更改,包括 2 次插入6 次删除
  1. 二进制
      examples/screenshots/webgl_materials_variations_toon.jpg
  2. 2 6
      examples/webgl_materials_variations_toon.html

二进制
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 );
 
 				//