Table of Contents

Class DistanceDensity

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

Leaf: a spherical field — Euclidean distance from the origin run through a falloff function.

public sealed class DistanceDensity : Density
Inheritance
DistanceDensity
Inherited Members

Constructors

DistanceDensity(Func<double, double>)

Leaf: a spherical field — Euclidean distance from the origin run through a falloff function.

public DistanceDensity(Func<double, double> falloffFunction)

Parameters

falloffFunction Func<double, double>

Methods

Process(Context)

public override double Process(Density.Context context)

Parameters

context Density.Context

Returns

double