Skip to main content
2 of 2
added 6 characters in body
jzx
  • 3.8k
  • 2
  • 24
  • 38

Essentially, the normal of the vertex would be the average of the adjacent faces' (triangles) normals.

In pseudocode:

for each face adjacent to vertex[n]
    sum = sum + face.normal
normal[n] = NORMALIZE(sum / COUNT(adjacent faces))

Repeat for each vertex.

jzx
  • 3.8k
  • 2
  • 24
  • 38