formZ SDK | 4.0 Call Back Reference | RenderZone Shader

fz_shdr_cbak_bump_pre_render

Description

Bump shader pre_render function (Optional). This function is called once before the start of each rendering. It is expected to precompute information that will be used by the fz_shdr_cbak_bump_pixel function. Typically, the pre-render function will allocate a data structure, fill it with precomputed information and pass the pointer of the structure back to formZ via the function argument. This pointer will be passed back into the fz_shdr_cbak_bump_pixel function and also the post_render function, which should de-allocate the structure.

Plugin Prototype

fzrt_error_td fz_shdr_cbak_bump_pre_render(

void**

shdr_data )

Parameters

shdr_data [Result]

The pointer, which is passed to the shdr_cbak_bump_render and fz_shdr_cbak_bump_post_render callback functions of a shader.

Returns

Error codes

Availability

5.0.0.0

Example Files

sine_wave.fsl

See Also

fz_shdr_cbak_bump_post_render, fz_shdr_cbak_bump_pixel

Function Set

fz_shdr_cbak_bump_fset


Defined in

fz_rzne_shdr_api.h