Table of Contents

Class AmplitudeDensity

Namespace
Shard.WorldGen.Nodes
Assembly
Shard.WorldGen.dll

Multiplies the input node by a height-dependent amplitude (a function of Y); zero amplitude skips the input.

public sealed class AmplitudeDensity : Density
Inheritance
AmplitudeDensity
Inherited Members

Constructors

AmplitudeDensity(Func<double, double>, Density?)

Multiplies the input node by a height-dependent amplitude (a function of Y); zero amplitude skips the input.

public AmplitudeDensity(Func<double, double> amplitudeFunction, Density? input)

Parameters

amplitudeFunction Func<double, double>
input Density

Methods

Process(Context)

public override double Process(Density.Context context)

Parameters

context Density.Context

Returns

double

SetInputs(Density[])

Wire this node's inputs (no-op for leaf nodes).

public override void SetInputs(Density[] inputs)

Parameters

inputs Density[]