Browse Source

- Double sided material is friendly towards crappy IndexedFaceSets

Bart McLeod 11 years ago
parent
commit
e10e5dfd64
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/js/loaders/VRMLLoader.js

+ 2 - 2
examples/js/loaders/VRMLLoader.js

@@ -367,7 +367,7 @@ THREE.VRMLLoader.prototype = {
                         }
                         }
 
 
                         geometry.computeFaceNormals();
                         geometry.computeFaceNormals();
-                       // geometry.computeVertexNormals();
+                        //geometry.computeVertexNormals(); // does not show
                         geometry.computeBoundingSphere();
                         geometry.computeBoundingSphere();
 
 
                         // see if it's a define
                         // see if it's a define
@@ -390,7 +390,7 @@ THREE.VRMLLoader.prototype = {
 						if ( /Material/.exec( child.string ) ) {
 						if ( /Material/.exec( child.string ) ) {
 
 
 							var material = new THREE.MeshPhongMaterial();
 							var material = new THREE.MeshPhongMaterial();
-                            material.doubleSided = THREE.DoubleSide;
+                            material.side = THREE.DoubleSide;
 
 
 							for ( var j = 0; j < child.children.length; j ++ ) {
 							for ( var j = 0; j < child.children.length; j ++ ) {