Table of Contents

Class BaseHeightDensity

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

Leaf: the biome's base height. In "distance" mode returns the signed distance to the base plane (position.Y - baseHeight, so >0 above / <0 below); otherwise the constant base height. The baseHeight is resolved at load time from a named Framework decimal constant (e.g. "Base"). Mirrors the v2 generator's BaseHeightDensity.

public sealed class BaseHeightDensity : Density
Inheritance
BaseHeightDensity
Inherited Members

Constructors

BaseHeightDensity(double, bool)

Leaf: the biome's base height. In "distance" mode returns the signed distance to the base plane (position.Y - baseHeight, so >0 above / <0 below); otherwise the constant base height. The baseHeight is resolved at load time from a named Framework decimal constant (e.g. "Base"). Mirrors the v2 generator's BaseHeightDensity.

public BaseHeightDensity(double baseHeight, bool isDistance)

Parameters

baseHeight double
isDistance bool

Methods

Process(Context)

public override double Process(Density.Context context)

Parameters

context Density.Context

Returns

double