Table of Contents

Class AnchorDensity

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

Re-centers the input node on the context's density anchor (subtract the anchor, or add it when reversed). With no anchor, the input is evaluated unchanged. Allocates a per-call child context.

public sealed class AnchorDensity : Density
Inheritance
AnchorDensity
Inherited Members

Constructors

AnchorDensity(Density?, bool)

Re-centers the input node on the context's density anchor (subtract the anchor, or add it when reversed). With no anchor, the input is evaluated unchanged. Allocates a per-call child context.

public AnchorDensity(Density? input, bool isReversed)

Parameters

input Density
isReversed bool

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