Table of Contents

Class CurveMapperDensity

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

Maps the input node's value through a curve function (e.g. Evaluate(double)).

public sealed class CurveMapperDensity : Density
Inheritance
CurveMapperDensity
Inherited Members

Constructors

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

Maps the input node's value through a curve function (e.g. Evaluate(double)).

public CurveMapperDensity(Func<double, double> curveFunction, Density? input)

Parameters

curveFunction 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[]