Browse Source

Examples: Better light values for collada examples

Mugen87 8 years ago
parent
commit
6d47fb8287

+ 2 - 2
examples/models/collada/stormtrooper/stormtrooper.dae

@@ -40,10 +40,10 @@
               <texture texture="Stormtrooper_D-sampler" texcoord="StormtrooperDiffuseUVLayer"/>
               <texture texture="Stormtrooper_D-sampler" texcoord="StormtrooperDiffuseUVLayer"/>
             </diffuse>
             </diffuse>
             <specular>
             <specular>
-              <color sid="specular">0 0 0 1</color>
+              <color sid="specular">0.05 0.05 0.05 1</color>
             </specular>
             </specular>
             <shininess>
             <shininess>
-              <float sid="shininess">103</float>
+              <float sid="shininess">100</float>
             </shininess>
             </shininess>
             <index_of_refraction>
             <index_of_refraction>
               <float sid="index_of_refraction">1</float>
               <float sid="index_of_refraction">1</float>

+ 5 - 1
examples/webgl_loader_collada_skinning.html

@@ -86,9 +86,13 @@
 
 
 				//
 				//
 
 
-				var ambientLight = new THREE.AmbientLight( 0xcccccc );
+				var ambientLight = new THREE.AmbientLight( 0xffffff, 0.2 );
 				scene.add( ambientLight );
 				scene.add( ambientLight );
 
 
+				var directionalLight = new THREE.DirectionalLight( 0xffffff, 0.8 );
+				directionalLight.position.set( 1, 1, - 1 );
+				scene.add( directionalLight );
+
 				//
 				//
 
 
 				renderer = new THREE.WebGLRenderer( { antialias: true } );
 				renderer = new THREE.WebGLRenderer( { antialias: true } );