Update to blend logic.

This commit is contained in:
2023-09-17 14:02:17 -04:00
parent 40c27eef79
commit 913a2601d5
+1 -2
View File
@@ -229,12 +229,11 @@ public class HeightMap {
// Interpolate height for this position using pixel array.
float interpolatedTerrainHeight = heightMapZone.getHeightMap().getInterpolatedTerrainHeight(zoneLoc);
worldHeight = interpolatedTerrainHeight + heightMapZone.worldAltitude;
// Heightmap blending is based on distance to edge of zone.
if (Bounds.collide(worldLoc, heightMapZone.maxBlend) == true)
return worldHeight;
return interpolatedTerrainHeight + heightMapZone.worldAltitude;
// We will need the parent height if we got this far into the method