formZ SDK | 5.0 API Reference | Project | Modeling | Rendering | Shaders
Description
Scales the original ambient factor (ambt_factor_in) by the ambient occlusion factor at the current pixel and returns it in ambt_factor_out. The ambient occlusion factor is also returned in ambt_occl_factor. This arguments needs to be passed to fz_shdr_ambient_occl_addtl_contrast for the computation of the additional ambient occlusion contrast. See fz_shdr_ambient_occl_addtl_contrast for more details.
Plugin Prototype
void fz_shdr_ambient_occl_contrast(
double | ambt_factor_in, |
double * | ambt_factor_out, |
double * | ambt_occl_factor ) |
Parameters
ambt_factor_in [Input]
The original ambient factor used by the shader. This is usually the value returned by .
ambt_factor_out [Result]
The ambient factor which has been scaled by the ambient occlusion factor, which is calculated at the current pixel. This value needs to be used in the ambient illumination calculation, instead of the original ambient factor.
ambt_occl_factor [Result]
The ambient occlusion factor at the current pixel. This value needs to be passed into fz_shdr_ambient_occl_addtl_contrast.
Returns
Error codes.
Availability
6.5.0.0
Function Set
Defined in