ScaleBias

Noise module that applies a scaling factor and a bias to the output value from a source module.

@image html modulescalebias.png

The GetValue() method retrieves the output value from the source module, multiplies it with a scaling factor, adds a bias to it, then outputs the value.

This noise module requires one source module.

Constructors

this
this()

Constructor.

Members

Functions

GetBias
double GetBias()

Returns the bias to apply to the scaled output value from the source module.

GetScale
double GetScale()

Returns the scaling factor to apply to the output value from the source module.

GetSourceModCount
int GetSourceModCount()
Undocumented in source. Be warned that the author may not have intended to support it.
GetValue
double GetValue(double x, double y, double z)
Undocumented in source. Be warned that the author may not have intended to support it.
SetBias
void SetBias(double bias)

Sets the bias to apply to the scaled output value from the source module.

SetScale
void SetScale(double scale)

Sets the scaling factor to apply to the output value from the source module.

Variables

m_bias
double m_bias;

Bias to apply to the scaled output value from the source module.

m_scale
double m_scale;

Scaling factor to apply to the output value from the source module.

Inherited Members

From Mod

~this
~this()

Destructor.

GetSourceMod
const(Mod) GetSourceMod(int index)

Returns a reference to a source module connected to this noise module.

GetSourceModCount
int GetSourceModCount()

Returns the number of source modules required by this noise module.

GetValue
double GetValue(double x, double y, double z)

Generates an output value given the coordinates of the specified input value.

SetSourceMod
void SetSourceMod(int index, const(Mod)* sourceMod)

Connects a source module to this noise module.

m_pSourceMod
const(Mod)*[] m_pSourceMod;

An array containing the pointers to each source module required by this noise module.

Meta