formZ SDK | 5.0 API Reference | Project | Modeling | Rendering | Shaders
Description
This is a simple utility function to create a random wiggly curve based on a single floating point input value. If plotted as a graph each input value yields a value between 0.0 and 1.0, that, creates a smooth wiggly curve that progresses more or less horizontally, but without recognizable repetitive patterns. This function is similar to fz_shdr_turbulance_1d, but does not use the passes parameter.
Plugin Prototype
double fz_shdr_noise_1d(
double | x, |
type, | |
fzrt_int | nimpulses ) |
Parameters
x [Input]
The input value
type [Input]
The turbulence type
nimpulses [Input]
The number of impulses if type is FZ_SHDR_TURB_TYPE_BEST. The higher the value, the more random the pattern. Higher values also cause this function to execute slower. A value of 3 is a good default.
Range: 1 <= nimpulses <= 10
Returns
noise value in the range 0.0 to 1.0
Availability
5.0.0.0
See Also
Function Set
Defined in