浏览代码

Fixing TorusKnot normals

David Catuhe 11 年之前
父节点
当前提交
976fb55297
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      Babylon/Mesh/babylon.mesh.js
  2. 2 2
      Babylon/Mesh/babylon.mesh.vertexData.js

+ 1 - 1
Babylon/Mesh/babylon.mesh.js

@@ -1238,7 +1238,7 @@ var BABYLON = BABYLON || {};
             }
 
             // Normals
-            BABYLON.VertexData.ComputeNormal(positions, indices, normals);
+            BABYLON.VertexData.ComputeNormals(positions, indices, normals);
 
             // Transfer
             ground.setVerticesData(positions, BABYLON.VertexBuffer.PositionKind, updatable);

+ 2 - 2
Babylon/Mesh/babylon.mesh.vertexData.js

@@ -653,8 +653,8 @@ var BABYLON = BABYLON || {};
                 var c = (i + 1) * tubularSegments + jNext;
                 var d = i * tubularSegments + jNext;
 
-                indices.push(a); indices.push(b); indices.push(d);
-                indices.push(b); indices.push(c); indices.push(d);
+                indices.push(d); indices.push(b); indices.push(a);
+                indices.push(d); indices.push(c); indices.push(b);
             }
         }