SetupTerrains()

Syntax

SetupTerrains(LightID, CompositeMapDistance.f, Flags)
Description
Setup the default parameters for all the future created terrains.

Parameters

LightID The light to use for the terrain rendering. To get a valid light id, use LightID().
CompositeMapDistance The distance at which to start using a composite map if present, in world unit.
Flags Can be a combination of the following values:
  #PB_Terrain_Lightmap:      enable the light map for the terrains (a texture with static shadows).
  #PB_Terrain_NormalMapping: enable the normal mapping for the terrains. This is a special texture
                             which simulate relief like small rocks, etc.

Return value

None.

See Also

CreateTerrain()

Supported OS

All

<- SetTerrainTileLayerBlend() - Terrain Index - TerrainHeight() ->