half-vector(半向量):在计算机图形学/光照模型中,指入射光方向向量与观察(视线)方向向量的单位化平均方向,常用来近似表示“微表面法线与高光最强时的方向”,用于高光(specular)计算(如 Blinn-Phong、一些微表面模型中也会用到)。
(注:在其他领域 vector 也有不同用法,但此词最常见于渲染与着色。)
/ˈhæf ˌvɛktər/
The shader uses the half-vector to compute specular highlights.
着色器使用半向量来计算镜面高光。
In Blinn–Phong lighting, the specular term is often based on the dot product between the surface normal and the normalized half-vector of the light and view directions.
在 Blinn–Phong 光照中,镜面项常基于表面法线与光照方向和视线方向的归一化半向量之间的点积来计算。
由 half(“一半、折中”)+ vector(“向量”)构成。这里的 half 不是“长度减半”,而是指取两条方向的“中间/折中方向”:把光照方向与视线方向相加后再归一化,得到位于两者之间的方向向量。