formZ SDK | 4.0 Call Back Reference | RenderZone Shader

fz_shdr_cbak_trns_avg

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

sine_wave.fsl

Function Set

fz_shdr_cbak_trns_fset


Defined in

fz_rzne_shdr_api.h