mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 16:54:04 +00:00
Remove transition hydrology weight
- Drop test-only TransitionGenerationPlan.hydrologyWeightAt - Drop TerrainSample.hydrologyWeight and its validation
This commit is contained in:
1 parent
df7aa2ef16
commit
490016b56a
3 files changed
+5
-19
No files matched your search
@@ -114,11 +114,9 @@ final class TransitionBoundarySampler {
|
||||
Math.min(distance, terrainWidth),
|
||||
terrainWidth
|
||||
);
|
||||
double hydrologyWeight = newEpochWeight;
|
||||
return new TransitionGenerationPlan.TerrainSample(
|
||||
Math.min(distance, searchWidth),
|
||||
newEpochWeight,
|
||||
hydrologyWeight,
|
||||
nearest.signatures[0],
|
||||
weightedHeight(nearest, true),
|
||||
weightedHeight(nearest, false),
|
||||
|
||||
@@ -88,10 +88,6 @@ public final class TransitionGenerationPlan {
|
||||
return terrainSampleAt(blockX, blockZ).newEpochWeight();
|
||||
}
|
||||
|
||||
public double hydrologyWeightAt(int blockX, int blockZ) {
|
||||
return terrainSampleAt(blockX, blockZ).hydrologyWeight();
|
||||
}
|
||||
|
||||
public boolean allowsNewDiscreteContentAt(int blockX, int blockZ) {
|
||||
return !boundary.isHistoricalBlock(blockX, blockZ);
|
||||
}
|
||||
@@ -191,7 +187,6 @@ public final class TransitionGenerationPlan {
|
||||
public record TerrainSample(
|
||||
double distanceToHistoricalTerrain,
|
||||
double newEpochWeight,
|
||||
double hydrologyWeight,
|
||||
TerrainBoundarySignature nearestSignature,
|
||||
double historicalSurfaceHeight,
|
||||
double historicalOceanFloorHeight,
|
||||
@@ -204,9 +199,6 @@ public final class TransitionGenerationPlan {
|
||||
if (!Double.isFinite(newEpochWeight) || newEpochWeight < 0D || newEpochWeight > 1D) {
|
||||
throw new IllegalArgumentException("New epoch weight must be between zero and one");
|
||||
}
|
||||
if (!Double.isFinite(hydrologyWeight) || hydrologyWeight < 0D || hydrologyWeight > 1D) {
|
||||
throw new IllegalArgumentException("Hydrology weight must be between zero and one");
|
||||
}
|
||||
if (nearestSignature != null
|
||||
&& (!Double.isFinite(historicalSurfaceHeight)
|
||||
|| !Double.isFinite(historicalOceanFloorHeight)
|
||||
@@ -217,11 +209,11 @@ public final class TransitionGenerationPlan {
|
||||
}
|
||||
|
||||
static TerrainSample newTerrain(double distance) {
|
||||
return new TerrainSample(distance, 1D, 1D, null, 0D, 0D, 0D);
|
||||
return new TerrainSample(distance, 1D, null, 0D, 0D, 0D);
|
||||
}
|
||||
|
||||
static TerrainSample historicalTerrain() {
|
||||
return new TerrainSample(0D, 0D, 0D, null, 0D, 0D, 0D);
|
||||
return new TerrainSample(0D, 0D, null, 0D, 0D, 0D);
|
||||
}
|
||||
|
||||
public boolean hasHistoricalSignature() {
|
||||
|
||||
Reference in new issue
Block a user