Readonly_World AABB inflate as a fraction of camera-to-box distance. Written into the bus before each worker job.
Moves reprojected occluders away from the camera.
b > 0: z * (1 + b) + b. b < 0: z + |b| metres of view-space Z.
Written into the bus before each worker job.
Extra coverage pixels around the projected rect. Written into the bus before each worker job.
Static ReadonlyDEFAULT_Adds the object to the queue for occlusion testing.
The unique identifier returned earlier by the lock() method.
Optional_extra: number | number[]A queue index or -1 (if internal verification inconsistencies occur, for example, the tester is unavailable or the tester is waiting for synchronization).
Runs an occlusion check for the specified camera.
The camera
Return the result of the last occlusion test for the specified object.
The unique identifier of the object.
OCCLUSION_UNKNOWN, OCCLUSION_VISIBLE, or OCCLUSION_OCCLUDED.
Registers a BoundingBox for subsequent occlusion testing.
The bounds of the object in local or world coordinates.
Optionalmatrix: Mat4
Optional transformation matrix (if a local BoundingBox is used).
Optional extra data 1.
Optional extra data 2.
A unique identifier for the registered object.
Registers a BoundingBox for subsequent occlusion testing.
The array containing the bounding box data (min and max points) in local or world coordinates [minX, maxX, minY, maxY, minZ, maxZ].
The offset in the array where the bounding box data starts.
Optionalmatrix: Mat4
Optional transformation matrix (if a local BoundingBox is used).
Optionalextra1: number
Optional extra data 1.
Optionalextra2: number
Optional extra data 2.
A unique identifier for the registered object.
Releases a previously registered identifier and removes associated data.
The unique identifier obtained from the lock() call.
Pack the chosen HZB mip and start a readback.
Call after hzb.update or hzb.updateSceneDepth — the pyramid is the depth source.
JS worker coverage tester. Owns the AABB pool, one transferable job bus, and a two-slot ping-pong output ring (reprojected + flags). Last results stay in the published slot while the write slot is with coverageBufferWorkerMain.
CoverageCpuBufferruns only inside the worker — never on this thread.