formZ SDK | 5.0 API Reference | Project | Modeling | Rendering | Shaders
Description
This function can only be called inside the set_parameters
callback function when implementing a plugin or script
shader. It declares the standard noise parameter. No
further action needs to be taken by a plugin or script shader.
formZ will automatically create the noise menu and text field.
In the pixel callback function the current noise shader
parameters can be retrieved via fz_shdr_get_noise_type(&ntype) and
fz_shdr_get_noise_impulses(&nimpulse)
Plugin Prototype
void fz_shdr_set_noise_parm(
type, | |
fzrt_int | nimpulse ) |
Parameters
type [Input]
The default noise type. It should be set to FZ_SHDR_TURB_TYPE_SIMPLE to match other formZ shaders.
nimpulse [Input]
The default number of impulses for the FZ_SHDR_TURB_TYPE_BEST noise type. It should be set to 3 to match other formZ shaders.
Returns
none
Availability
5.0.0.0
Function Set
Defined in