Skip to content

OnFrustumEnterCallback

OnFrustumEnterCallback: (index, camera, cameraLOD?, LODindex?) => boolean

Defined in: core/feature/FrustumCulling.ts:23

Callback invoked when an instance is within the frustum.

Parameters

index

number

The index of the instance.

camera

Camera

The camera used for rendering.

cameraLOD?

Camera

The camera used for LOD calculations (provided only if LODs are initialized).

LODindex?

number

The LOD level of the instance (provided only if LODs are initialized and sortObjects is false).

Returns

boolean

True if the instance should be rendered, false otherwise.