lit¶
Description¶
Legacy lighting function (obsolete).
Signature¶
vector<float, 4> lit( float n_dot_l, float n_dot_h, float m);
Parameters¶
n_dot_l : float¶
The dot product of the normal and light vectors.
n_dot_h : float¶
The dot product of the normal and half-angle vectors.
m : float¶
The material shininess factor.
Return value¶
The lighting coefficients, (ambient, diffuse, specular, 1.0).
Remarks¶
In HLSL, this function is implemented as an intrinsic. It is emulated for other targets.
Availability and Requirements¶
Defined for the following targets:
hlsl¶
Available in all stages.
glsl¶
Available in all stages.
cpp¶
Available in all stages.
cuda¶
Available in all stages.
metal¶
Available in all stages.
spirv¶
Available in all stages.
llvm¶
Available in all stages.