Renderer · function

batchBoxVisible

Whether a batch's box (instancesBox) can be seen at all: inside the frustum, and not behind the declared occluders. One test for a whole region's props, run before any instance is looked at.

Explained in Hello world.

function batchBoxVisible(box: Float32Array, frustum: FrustumPlanes, occluder: BoxOccluder | null): boolean
import { batchBoxVisible } from '@driftengine/core';

Parameters

ParameterTypeDescription
boxFloat32Array
frustumFrustumPlanes
occluderBoxOccluder | null