GetTerrainTileLayerBlend()

Syntax

Result = GetTerrainTileLayerBlend(#Terrain, TileX, TileY, Layer, x, y)
Description
Returns the terrain tile layer blend value at the specified position.

Parameters

#Terrain The terrain to use.
TileX The tile 'x' index.
TileY The tile 'y' index.
Layer The layer index. The first layer index starts from 0. The maximum number of layers is defined when creating the terrain, see CreateTerrain().
x, y The position in the tile (in pixels) to get the blend value.

Return value

Returns the terrain tile layer blend value at the specified position. The blend value ranges from 0.0 (fully transparent) to 1.0 (fully opaque).

See Also

CreateTerrain()

Supported OS

All

<- GetTerrainTileHeightAtPoint() - Terrain Index - SaveTerrain() ->