Table of Contents

Class TerrainGridCreationContext

Namespace
Pinwheel.Vista
Assembly
Pinwheel.Vista.Runtime.dll

Describes the terrain grid a backend should create. Passed to CreateTerrainGrid(TerrainGridCreationContext).

public class TerrainGridCreationContext
Inheritance
TerrainGridCreationContext
Inherited Members

Remarks

This carries only the intent of the grid. The tile counts, the size of each tile, and the desired texture density. The values are validated by the constructor and the fields are read only, so any instance a backend receives is always valid. The backend converts texturePixelsPerMeter into a concrete heightmap resolution that satisfies its own constraints, for example Unity Terrain requires a power of two plus one while Polaris accepts any value. Creating the grid is pure runtime work, no asset files are written.

Constructors

TerrainGridCreationContext(Vector2Int, Vector3, Transform)

Creates a validated grid description. Throws when any value would produce a degenerate grid, so an instance that exists is always usable by a backend.