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

fz_shdr_set_ambient_occl_parm

Description

This function can only be called inside the set_parameters callback function when implementing a plugin or script reflection shader. It declares the standard ambient reflection parameter. No further action needs to be taken by a plugin or script shader. formZ will automatically create the title, text field, map menu and options button. Note, that this function is the same as fz_shdr_set_ambient_parm, except that it tells formZ, that the reflection shader handles ambient occlution in its callback function. For more details, see and fz_shdr_ambient_occl_addtl_contrast.
In the pixel callback function the current value of the ambient reflection parameter can be retrieved via the call (&val).

Plugin Prototype

void fz_shdr_set_ambient_occl_parm(

double

fval )

Parameters

fval [Input]

The default ambient factor.

Returns

none

Availability

6.5.0.0

See Also

,, fz_shdr_ambient_occl_addtl_contrast

Function Set

fz_shdr_fset


Defined in

fz_rzne_shdr_api.h