我使用灯光贴图而不是UV模版的原因是灯光贴图能更好的展现旧的面貌。
We used Lightmap instead of UVTemplate because Lightmap can show a better and more old-fashioned appearance.
它通过顶点法线所定义的方向察看每个目标面,然后根据来自法线贴图的信息通过补偿它来计算新的灯光效果。
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.
阴影贴图是基于纹理的方式,最简单的方法把它看作是“阴影纹理”,从灯光投射阴影到场景。
Shadow mapping is a texture based approach, it's easiest to think of it as "shadow textures" projecting out from lights onto the scene.
应用推荐