formZ SDK | 4.0 Call Back Reference | RenderZone Shader
Description
Color shader average color function (Optional). This function is called by
formZ at certain intervals, to determine an average color
for this color shader.
A typical implementation of this function would take all the
individual colors used in the shader and calculate the
mathematical average; for example : (col1 + col2 + col3) / 3.0.
if this function is not supplied, the average color for
a shader is always set to 50% gray (rgb = 0.5,0.5,0.5).
Plugin Prototype
fz_rgb_float_td fz_shdr_cbak_colr_avg(void)
Returns
The average color of the color shader.
Availability
5.0.0.0
Example Files
Function Set
Defined in