Table of Contents

Class GradientWarpDensity

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

Domain warp: displaces the sample position along the gradient of a warp field (finite-difference over a step, scaled by warpFactor) before evaluating the input. Allocates per-call child contexts.

public sealed class GradientWarpDensity : Density
Inheritance
GradientWarpDensity
Inherited Members

Constructors

GradientWarpDensity(Density?, Density?, double, double)

public GradientWarpDensity(Density? input, Density? warpInput, double slopeRange, double warpFactor)

Parameters

input Density
warpInput Density
slopeRange double
warpFactor double

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