formZ SDK | 4.0 Call Back Reference | RenderZone Shader
Description
Transparency shader average transparency function (Optional).
This function is called by formZ at certain intervals, to determine an
average transparency for this Transparency shader.
A typical implementation of this function would take all the
individual transparencies used in the shader and calculate the
mathematical average; for example : (trn1 + trn2 + trn3) / 3.0.
if this function is not supplied, the average transparency for
a shader is always set to 0% (fully opaque).
Plugin Prototype
double fz_shdr_cbak_trns_avg(void)
Returns
The average transparency of the transparency shader.
Availability
5.0.0.0
Example Files
Function Set
Defined in