forked from MagicBane/Server
Update to blend logic.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user