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): number
import { tilesForView } from '@driftengine/texture';

Parameters

ParameterTypeDescription
viewFloat32Array
projFloat32Array
instancesInstanceTileInfo
outstring[]
budgetnumber

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.