|
|
@ -123,7 +123,12 @@ public class Terrain { |
|
|
|
|
|
|
|
|
|
|
|
// Blend between terrains
|
|
|
|
// 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; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|