摘要
基于经典Phone光照模型,改进距离衰减算法,并采用新的聚光灯模型内外圆锥算法以提高真实感光照效果。考虑到实时性要求,使用高层着色语言GLSL的顶点着色器编程实现三种光源(平行光、点光源和聚光灯)的光照效果。实验结果证明了以上算法的有效性。
Distance attenuation algorithm and spot light′s internal and external cones algorithm are used to create more realistic rendering effects.Both of them are modified and extended form classical lighting model Phone.Considering real-time performance,three lighting effects(Directional light,Point light and Spot light) are rendered realistically with vertex shader of OpenGL shading language.According to this research,these algorithms are effective.
出处
《现代电子技术》
2009年第18期105-107,共3页
Modern Electronics Technique