光照模型(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 反射射线
在计算高光反射时,需要计算反射射线