diff --git a/glutil-mesh.js b/glutil-mesh.js index 746faed7..86ce67a2 100644 --- a/glutil-mesh.js +++ b/glutil-mesh.js @@ -130,7 +130,7 @@ Mesh._recalcNormalsFinish=function(vertices,uniqueVertices,faces,stride,offset,f dupverts[dupvertcount++]=nz avgx+=nx avgy+=ny - avgy+=nz + avgz+=nz } } for(var i=0;i