Table of Contents

Class SmoothClampDensity

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

Clamps the input node to [min, max] with smooth (soft) transitions over a blend range.

public sealed class SmoothClampDensity : Density
Inheritance
SmoothClampDensity
Inherited Members

Constructors

SmoothClampDensity(double, double, double, Density?)

public SmoothClampDensity(double min, double max, double range, Density? input)

Parameters

min double
max double
range 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[]