formZ SDK | 4.0 Call Back Reference | RenderZone Shader

# fz_shdr_cbak_fgnd_pixel

Description

Depth effect shader main function (Required). It is expected to adjust the color of a surface pixel based on the distance of the pixel from the eye point.

Plugin Prototype

fz_rgb_float_td fz_shdr_cbak_fgnd_pixel(

void * | shdr_data )

Parameters

shdr_data [Input]

Shader data. This is the pointer which was returned to formZ by the fz_shdr_cbak_fgnd_pre_render API callback function. It allows the plugin to pass data from the initialization stage to this function. Typically, this is information, which is precomputed once at rendering start.

Returns

The color of the pixel.

Availability

5.0.0.0

Example Files

sine_wave.fsl

See Also

fz_shdr_cbak_fgnd_pre_render, fz_shdr_cbak_fgnd_post_render

Function Set

fz_shdr_cbak_fgnd_fset

Defined in

fz_rzne_shdr_api.h