Skip to content

Commit 9fae127

Browse files
committed
Fix bug in vertex normal calculation
1 parent 6735d06 commit 9fae127

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glutil-mesh.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Mesh._recalcNormalsFinish=function(vertices,uniqueVertices,faces,stride,offset,f
130130
dupverts[dupvertcount++]=nz
131131
avgx+=nx
132132
avgy+=ny
133-
avgy+=nz
133+
avgz+=nz
134134
}
135135
}
136136
for(var i=0;i<v.length;i++){

0 commit comments

Comments
 (0)