传统光照模型(Illumination Model)
1. Phong模型
1.1 基本定义
表示表面的单位法线矢量 是指向光源的单位矢量 是反射光线的单位矢量 是指向相机的单位矢量
1.2 算法
https://en.wikipedia.org/wiki/Phong_reflection_model

1.2.1 环境光(Ambient Reflection)
其中
1.2.2 漫反射(Diffuse Reflection)
根据Lambert规则,材质的漫反射是均匀发射到周围的,和观察角度无关,只和光源的入射角度有关
其中
1.2.3 高光反射(Specular Reflection)
其中
1.2.3 反射射线
在计算高光反射时,需要计算反射射线
2. Blinn-Phong模型
2.1 基本定义
和Phong模型很类似,只不过增加了半角向量
2.2 算法
https://en.wikipedia.org/wiki/Blinn%E2%80%93Phong_shading_model
其中环境光和漫反射和Phong相同
高光部分使用