Explorar o código

Examples: Improved webgl_materials_variations_toon.

Mr.doob %!s(int64=5) %!d(string=hai) anos
pai
achega
062fa1b58b

BIN=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 );
 
 				//