formZ SDK | 5.0 API Reference | Project | Modeling | Rendering | Shaders
Description
This function can only be called inside the pixel or
pre_render callback function when implementing a plugin or script
reflection shader. It retrieves the current value of the
specular color parameter. This parameter must have
been declared in the set_parameters callback function
of the same shader via a call to ().
To avoid retrieving the specular color in each call of
the pixel function, it should be retrieved only once
in the pre_render function and passed to the pixel function
via a data structure created in the pre_render function.
Plugin Prototype
void fz_shdr_get_specular_color(
col ) |
Parameters
col [Result]
The current value of the specular color parameter.
Returns
none
Availability
5.0.0.0
See Also
Function Set
Defined in