|
@@ -60,6 +60,17 @@
|
|
|
|
|
|
dae = collada.scene;
|
|
|
|
|
|
+ dae.traverse( function ( child ) {
|
|
|
+
|
|
|
+ if ( child instanceof THREE.Mesh ) {
|
|
|
+
|
|
|
+ child.geometry.computeFaceNormals();
|
|
|
+ child.material.shading = THREE.FlatShading;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ } );
|
|
|
+
|
|
|
dae.scale.x = dae.scale.y = dae.scale.z = 10.0;
|
|
|
dae.updateMatrix();
|
|
|
|
|
@@ -111,14 +122,14 @@
|
|
|
|
|
|
scene.add( new THREE.AmbientLight( 0xcccccc ) );
|
|
|
|
|
|
- var directionalLight = new THREE.DirectionalLight(/*Math.random() * 0xffffff*/0xeeeeee );
|
|
|
+ var directionalLight = new THREE.DirectionalLight( 0xeeeeee );
|
|
|
directionalLight.position.x = Math.random() - 0.5;
|
|
|
directionalLight.position.y = Math.random() - 0.5;
|
|
|
directionalLight.position.z = Math.random() - 0.5;
|
|
|
directionalLight.position.normalize();
|
|
|
scene.add( directionalLight );
|
|
|
|
|
|
- var pointLight = new THREE.PointLight( 0xffffff, 1 );
|
|
|
+ var pointLight = new THREE.PointLight( 0xffffff, 0.5 );
|
|
|
particleLight.add( pointLight );
|
|
|
|
|
|
renderer = new THREE.WebGLRenderer();
|