摘要
Vertex Shader代替了标准图形管线中的坐标变换和光照变换阶段,能够实现更为灵活且真实的光照效果。本文使用结合VertexShader技术编程实现了平行光、点光、聚光的顶点光照效果,并与使用标准图形管线实现的光照效果进行了对比。
Vertex Shader replaces the coordinate transformation and the light transformation of standard graphics pipelining.It can realize more flexible and more realistic lighting effect.Per-vertex lighting effect of directional light, point light and spot light are realized by using shader technique. And it is compared with standard graphics pipelining.
出处
《科技信息》
2010年第27期I0083-I0084,共2页
Science & Technology Information