ReadonlymeshesThe mesh instances used by this LOD renderer. All meshes share the same instancing buffer.
ReadonlysortWhether objects should be sorted before rendering. Usually enabled for transparent materials.
Computes the combined bounding box for all meshes.
If root is defined, the bounding box is converted to the root local space (root scale kept, translation and rotation stripped) so it can be used for frustum culling without updating matrices on the CPU.
The bounding box for all meshes, or null if there are no meshes.
Releases resources and disables the renderer.
Finalizes the frame and applies the collected data to the meshes.
Updates instancing counts and, when needed, local matrices relative to the root entity, keeping the root scale.
Enqueues an instance for rendering.
The instance index in the buffer.
Opacity value in the range from 0 to 1.
OptionalextraPad: number
The extra value. Default is 0.
Resize instances capacity
Sorts the collected instances.
If true, sorts in reverse order.
Buffer of indices used during sorting.
Temporary buffer for depth values.
Starts collecting instances for the next render pass. Clears the internal list of queued objects.
Renderer for LOD objects using GPU instancing.
Responsible for preparing meshes, collecting instances, computing bounding boxes, and updating rendering parameters.