sm.terrainTile.getColorAt
Returns the terrain color at position (x,y) in a tile cell.
Kind: Function
Environments: Terrain
Terrain
sm.terrainTile.getColorAt( tileUid, cellOffsetX, cellOffsetY, lod, x, y )
Open the full Terrain reference
Parameters:
| Name | Type | Description |
|---|---|---|
tileUid |
Uuid | The tile uuid. |
cellOffsetX |
integer | The cell X offset. |
cellOffsetY |
integer | The cell Y offset. |
lod |
integer | The level of detail. [0-5] |
x |
integer | The local X value. |
y |
integer | The local Y value. |
Returns:
| Type | Description |
|---|---|
| number number number |
The color R, G, B values. |