DriftTexture · interface
InstanceTileInfo
What tilesForView needs besides the view.
Explained in DriftTexture.
interface InstanceTileInfoimport 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
| Name | Type | Description |
|---|---|---|
countreadonly | number | |
spheresreadonly | Float32Array | Four floats an instance: its world-space bounding sphere's centre and radius. |
uvsreadonly | Float32Array | Four floats an instance: the texture coordinates its surface spans, u0, v0, u1, v1. |
worldPerUvreadonly | Float32Array | World 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. |
materialreadonly | Uint32Array | Which entry of materials each instance samples. |
materialsreadonly | readonly (readonly MaterialTileGrid[])[] | Per material, the latents its programs sample. |
targetWidthreadonly | number | |
targetHeightreadonly | number |