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): numberimport { cullInstances } from '@driftengine/core';Parameters
| Parameter | Type | Description |
|---|---|---|
data | MeshInstances | |
local | Bounds | |
frustum | FrustumPlanes | |
out | MeshInstances |