MeshTransform

Represents transformation information to apply to a mesh when rendering a tile. based on the TypeScript version

Author

Jason Suto 03/12/2024

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Creates a new MeshTransform from a TileRenderable.

Properties

Link copied to clipboard
var offset: Vector3

The normalized offset to apply to the mesh from 0 to 1 relative to a single tile at zoom 0 that represents the entire world.

Link copied to clipboard

Scale of the mesh relative to the partial tile's scale. If the tile is not a partial tile, then this value is 1.

Link copied to clipboard
var scale: Vector3

The normalized scale to apply to the mesh from 0 to 1 relative to a single tile at zoom 0 that represents the entire world.

Link copied to clipboard

The normalized UV offset to use when sampling texture data from 0 to 1. If the tile is not a partial tile, then this value is [0, 0, 1, 1].