formZ SDK | 5.0 API Reference | Project | Modeling | Rendering | Shaders

fz_shdr_get_diffuse_term

Description

This function can only be called inside the pixel callback function when implementing a plugin or script reflection shader. It retrieves the current value of the diffuse illumination term of a pixel.

Plugin Prototype

void fz_shdr_get_diffuse_term(

fz_rgb_float_td *

col )

Parameters

col [Result]

The diffuse illumination color of the current pixel.

Returns

none

Availability

5.0.0.0

Plugin Example

Typically, the diffuse factor is multiplied with the result of the diffuse illumination term to yield the final diffuse shading color. :
fz_shdr_get_diffuse_factor(&diff_factor); fz_shdr_get_diffuse_term(&diff_col); diff_col *= diff_factor;

See Also

, fz_shdr_set_diffuse_parm

Function Set

fz_shdr_fset


Defined in

fz_rzne_shdr_api.h