提交 e10e5dfd 编写于 作者: B Bart McLeod

- Double sided material is friendly towards crappy IndexedFaceSets

上级 856267c8
......@@ -367,7 +367,7 @@ THREE.VRMLLoader.prototype = {
}
geometry.computeFaceNormals();
// geometry.computeVertexNormals();
//geometry.computeVertexNormals(); // does not show
geometry.computeBoundingSphere();
// see if it's a define
......@@ -390,7 +390,7 @@ THREE.VRMLLoader.prototype = {
if ( /Material/.exec( child.string ) ) {
var material = new THREE.MeshPhongMaterial();
material.doubleSided = THREE.DoubleSide;
material.side = THREE.DoubleSide;
for ( var j = 0; j < child.children.length; j ++ ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册