Represents a logical renderable object within the WebGL renderer, grouping one or more RendererMesh instances.

  • RendererObject is the GPU-side container for all meshes that make up a single scene/model object.
  • Each RendererObject owns one or more RendererMesh instances, each representing a distinct mesh or geometry part of the object.
  • Provides APIs to control visual and interaction state (visibility, highlighting, selection, x-ray, culling, clipping, collision, picking) across all its meshes and views.
  • Delegates all geometry, GPU memory, and RTC tiling logic to its RendererMesh instances.
  • RendererMesh instances are managed and batched by MeshBatchImpl, which organizes compatible meshes for efficient GPU upload and draw calls.
  • The MeshManager (or MeshBatchRegistry) coordinates creation, update, and removal of RendererObject and RendererMesh instances, responding to scene/view changes and synchronizing with the GPU memory manager.
  • The ViewManager manages all per-view state, coordinates with MeshManager, and tracks all RendererObject instances for each view.
  • The root WebGLRenderer owns the ViewManager, which in turn manages all RendererObject instances for the renderer.
  • Used internally by the renderer for efficient per-object state updates and synchronization with the GPU; application code interacts with higher-level scene/model objects.

Properties

id: string

Unique identifier for the object. This ID is used to reference the object within the renderer.

Methods