Displace.SetDisplaceMods

Sets the @a x, @a y, and @a z displacement modules.

@param xDisplaceMod Displacement module that displaces the @a x coordinate of the input value. @param yDisplaceMod Displacement module that displaces the @a y coordinate of the input value. @param zDisplaceMod Displacement module that displaces the @a z coordinate of the input value.

The GetValue() method displaces the input value by adding the output value from each of the displacement modules to the corresponding coordinates of the input value before returning the output value from the source module.

This method assigns an index value of 1 to the @a x displacement module, an index value of 2 to the @a y displacement module, and an index value of 3 to the @a z displacement module.

These displacement modules must exist throughout the lifetime of this noise module unless another displacement module replaces it.

class Displace
void
SetDisplaceMods
(
ref const(Mod) xDisplaceMod
,
ref const(Mod) yDisplaceMod
,
ref const(Mod) zDisplaceMod
)

Meta