Renderer · function

cullInstances

Keep the instances of data whose spheres meet frustum, compacted in order into out, and return how many. out must hold as many as data does; its count is set.

Explained in Hello world.

function cullInstances(data: MeshInstances, local: Bounds, frustum: FrustumPlanes, out: MeshInstances): number
import { cullInstances } from '@driftengine/core';

Parameters

ParameterTypeDescription
dataMeshInstances
localBounds
frustumFrustumPlanes
outMeshInstances