MSFTerrainFlattenMode
Objective-C
enum MSFTerrainFlattenMode : NSInteger {}
Swift
enum MSFTerrainFlattenMode : Int, @unchecked Sendable
How far a flattened terrain goes back towards a plain 2D map.
-
Rendering only: the terrain passes, the drape and the elevation fetches are dropped, but the tiles keep the terrain subdivision they were decoded with. Switching costs nothing and is instant, and a flat map still carries a 3D map’s triangles.
Declaration
Objective-C
MSF_TERRAIN_FLATTEN_MODE_RENDERSwift
case TERRAIN_FLATTEN_MODE_RENDER = 0 -
The whole way: a flat map decodes, culls and draws as if no terrain were configured. The price is a re-decode at each switch, paid while the map is already flat.
Declaration
Objective-C
MSF_TERRAIN_FLATTEN_MODE_FULLSwift
case TERRAIN_FLATTEN_MODE_FULL = 1