formZ SDK | 5.0 API Reference | Project | Modeling | Rendering | Shaders
Description
This function can only be called inside the pixel callback function when implementing a plugin or script reflection shader. It retrieves the current value of the ambient illumination term of a pixel.
Plugin Prototype
void fz_shdr_get_ambient_term(
col ) |
Parameters
col [Result]
The ambient illumination color of the current pixel.
Returns
none
Availability
5.0.0.0
Plugin Example
Typically, the ambient factor is multiplied with the
result of the ambient illumination term to yield the final
ambient shading color. :
fz_shdr_get_ambient_factor(&ambt_factor);
fz_shdr_get_ambient_term(&ambt_col);
ambt_col *= ambt_factor;
See Also
Function Set
Defined in