Skip to main content

Interface: TerrainMeshLayerOptions

Defined in: rendering/terrain/create-terrain-mesh.ts:13

Texture and tiling options for one of a terrain mesh's two texture layers (see CreateTerrainMeshOptions).

Properties

image

image: HTMLImageElement

Defined in: rendering/terrain/create-terrain-mesh.ts:18

The (already-loaded) image to tile across this layer - the same convention createImageSprite uses, rather than loading a URL itself.


tileSize

tileSize: Vector2

Defined in: rendering/terrain/create-terrain-mesh.ts:25

The world-space size of one tile of the texture: x tiles along the curve's arc length, y tiles into the ground. Smaller values repeat the texture more often over the same span of terrain.


tint

tint: Color

Defined in: rendering/terrain/create-terrain-mesh.ts:28

Tint multiplied against the sampled texture.