现弄明白几种光的计算方式
1.反射光
The equation for the specular lighting term using Phong shading is:
S = C * (R.L)P
Where S is the final specular value, C is the specular light value, R is the reflected
eye vector, L is the light vector, and P is the surface specular power.
Specular 反射光 S 是反射值, C是反射光颜色, R是与眼睛反射向量, L是光照向量, P是表面反射强度
The equation for the specular lighting term using Blinn shading is:
S = C * (N.H)P
Where S is the final specular value, C is the specular light value, N is the surface
normal, H is the interpolated half vector, and P is the surface specular power.
C是反射光颜色值, N是法线, H是插值半向量, P是表面反射强度