Table of Contents

Class VectorWarpDensity

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

Domain warp: displaces the sample position along a fixed direction by a warp field's value (scaled by warpFactor) before evaluating the input. Allocates a per-call child context.

public sealed class VectorWarpDensity : Density
Inheritance
VectorWarpDensity
Inherited Members

Constructors

VectorWarpDensity(Density?, Density?, double, Vector3d)

Domain warp: displaces the sample position along a fixed direction by a warp field's value (scaled by warpFactor) before evaluating the input. Allocates a per-call child context.

public VectorWarpDensity(Density? input, Density? warpInput, double warpFactor, Vector3d warpVector)

Parameters

input Density
warpInput Density
warpFactor double
warpVector Vector3d

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