Make Y the height above the dimension's bottom everywhere in the API: document it, and drop GenerationContext.originY, which is always 0 now

This commit is contained in:
piexel committed 2026-10-08 14:50:04 +02:00
1 parent 33fc9adca9
commit 09afee8ae3
26 files changed
+91 -54

No files matched your search

@@ -1,9 +1,10 @@
package com.volmit.world;
/** Immutable, seeded noise resource. Coordinates are world-space sample coordinates.
/** Immutable, seeded noise resource. X and Z are world coordinates; Y is the
* height above the dimension's bottom (0 = bottom).
* Range and scale belong to the resource; no implicit normalization is performed.
*/
@FunctionalInterface
public interface NoiseSampler {
double sample(double worldX, double worldY, double worldZ);
double sample(double worldX, double y, double worldZ);
}