OnFrustumEnterCallback
OnFrustumEnterCallback = (
index
,camera
,cameraLOD?
,LODIndex?
) =>boolean
Defined in: core/feature/FrustumCulling.ts:21
Callback invoked when an instance is within the frustum.
Parameters
Section titled “Parameters”number
The index of the instance.
camera
Section titled “camera”Camera
The camera used for rendering.
cameraLOD?
Section titled “cameraLOD?”Camera
The camera used for LOD calculations (provided only if LODs are initialized).
LODIndex?
Section titled “LODIndex?”number
The LOD level of the instance (provided only if LODs are initialized and sortObjects
is false).
Returns
Section titled “Returns”boolean
True if the instance should be rendered, false otherwise.