Table of Contents

Class CubeDensity

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

Leaf: a cube/box field — Chebyshev distance from the origin run through a falloff function.

public sealed class CubeDensity : Density
Inheritance
CubeDensity
Inherited Members

Constructors

CubeDensity(Func<double, double>)

Leaf: a cube/box field — Chebyshev distance from the origin run through a falloff function.

public CubeDensity(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