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

# fz_shdr_set_noise_parm

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(

fz_shdr_turb_type_enum | 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

fz_shdr_fset

Defined in

fz_rzne_shdr_api.h