Skip to content

Commit

Permalink
Fix bug in vertex normal calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
peteroupc committed Jul 23, 2015
1 parent 6735d06 commit 9fae127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glutil-mesh.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<v.length;i++){
Expand Down

0 comments on commit 9fae127

Please sign in to comment.