DriftTexture · interface

InstanceTileInfo

What tilesForView needs besides the view.

Explained in DriftTexture.

interface InstanceTileInfo
import type { InstanceTileInfo } from '@driftengine/texture';

In depth

The target's size is here because the plan's signature had nowhere for it, and a projection alone has no pixels: the level a sampler chooses is texels per pixel.

Properties

NameTypeDescription
countreadonlynumber
spheresreadonlyFloat32ArrayFour floats an instance: its world-space bounding sphere's centre and radius.
uvsreadonlyFloat32ArrayFour floats an instance: the texture coordinates its surface spans, u0, v0, u1, v1.
worldPerUvreadonlyFloat32ArrayWorld units one unit of texture coordinate spans on each instance's surface. Anything that is not a positive number is unknown, and an unknown density names every level.
materialreadonlyUint32ArrayWhich entry of materials each instance samples.
materialsreadonlyreadonly (readonly MaterialTileGrid[])[]Per material, the latents its programs sample.
targetWidthreadonlynumber
targetHeightreadonlynumber