formZ SDK | 4.0 Call Back Reference | RenderZone Shader
FZ_SHDR_CBAK_BGND_FSET_TYPE
formZ background shader callbacks function set id.
FZ_SHDR_CBAK_BGND_FSET_NAME
formZ background shader callbacks function set name.
FZ_SHDR_CBAK_BGND_FSET_VERSION
formZ background shader callbacks function set version.
Description
Function set for background shaders. The functions in this set need to
be supplied by the plugin or script to implement a background
and environment shader.
The main shader function is the callback. It is expected
to compute the color of a background pixel. Typically, the
two dimensional coordinate of a background pixel is used to
compute the pattern of the background. This pixel coordinate can be
retrieved by the function call ().
There are required and optional functions. The required functions
are :
All other functions are optional, but must be supplied to
enable a certain functionality. For example, if the background
shader has any parameters, the function must be supplied.
It is also advisable to implement a function, if
the function uses information which can be calculated
once and does not change during the course of a rendering.
It is important to note, that the function is called
at least once for each pixel, potentially thousands of times
during a single rendering. The faster the function, the faster
the rendering will be.
Availability
5.0.0.0
Functions:
fz_shdr_cbak_bgnd_set_parameters
Defined in