Namespace Shard.WorldGen
Classes
- Curve
A piecewise-linear curve defined by (input, output) control points, with clamped ends (inputs below the first / above the last point return that point's output). Ported from the v2 generator's
NodeFunction; used by amplitude/offset/curve density nodes. Pass Evaluate(double) as the function argument to those nodes.
- Density
A node in the terrain density graph. Each node computes a scalar density at a sample position via Process(Context); composite nodes receive their child nodes through SetInputs(Density[]). Mirrors the Hytale v2 generator's
Density(builtin/HytaleGenerator).
- Density.Context
The per-sample evaluation context threaded through the graph: the sample position plus optional terrain/biome state. Heavier provider/graph fields from upstream are added as those subsystems land.
- NoiseField
A scalable noise source sampled in 1-4 dimensions, the leaf supply for noise density nodes. Mirrors the v2 generator's
NoiseField. Coordinates are divided by the per-axis scale before sampling.