mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 00:34:19 +00:00
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:
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);
|
||||
}
|
||||
Reference in new issue
Block a user