@@ -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);
@@ -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);