DriftTexture · function
tilesForView
Fill out with the tiles this view would sample, most important first, at most budget of
them. Returns how many.
Explained in DriftTexture.
function tilesForView(view: Float32Array, proj: Float32Array, instances: InstanceTileInfo, out: string[], budget: number): numberimport { tilesForView } from '@driftengine/texture';Parameters
| Parameter | Type | Description |
|---|---|---|
view | Float32Array | |
proj | Float32Array | |
instances | InstanceTileInfo | |
out | string[] | |
budget | number |
In depth
view and proj are column-major and OpenGL-convention, as every camera in this engine builds
them. out is cleared past what is written.