forked from MagicBane/Server
Blend test
This commit is contained in:
@@ -123,7 +123,12 @@ public class Terrain {
|
||||
|
||||
// Blend between terrains
|
||||
|
||||
return interpolatedChildHeight * (1 - terrainZone.terrain.terrainBlend(terrainOffset));
|
||||
float blendFactor = terrainZone.terrain.terrainBlend(terrainOffset);
|
||||
|
||||
float terrainHeight = interpolatedChildHeight * blendFactor;
|
||||
terrainHeight += interpolatedParentTerrainHeight * (1 - blendFactor);
|
||||
|
||||
return terrainHeight;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user