At first we need to get normals for each triangle vertex, but how to achieve this?
2
确定顶点法线与重新计算顶点后得到的光照法线之间的角度的余弦。
Find the cosine of the Angle between the vertex normal and the newly calculated vertex to light normal.
3
它通过顶点法线所定义的方向察看每个目标面,然后根据来自法线贴图的信息通过补偿它来计算新的灯光效果。
It looks at each target face's direction as defined by it's vertex normals and calculates the new lighting solution by offsetting it with the information from the normal map.