Constant

Noise module that outputs a constant value.

@image html moduleconst.png

To specify the constant value, call the SetConstValue() method.

This noise module is not useful by itself, but it is often used as a source module for other noise modules.

This noise module does not require any source modules.

Constructors

this
this()

Constructor.

this
this(double constant)
Undocumented in source.

Members

Functions

GetConstValue
double GetConstValue()

Returns the constant output value for this noise 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.
SetConstValue
void SetConstValue(double constValue)

Sets the constant output value for this noise module.

Variables

m_constValue
double m_constValue;

Constant value.

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