Access to the Bloom post-processing configuration system.
Allows configuring bloom settings e.g. scene.bloom.enabled = true.
Gets the active camera viewpoint.
Gets the active HTMLCanvasElement swapchain presentation surface.
Gets the default asset base directory.
Sets the default asset base directory, ensuring trailing slashes are appended.
Gets the FXAA post-processing status.
Sets the FXAA post-processing status, writing parameters to logical GPU uniform buffers.
Gets a read-only list of registered light sources.
Gets a read-only list of registered meshes.
Overrides polymorphic hierarchy insertion to register Mesh children within the scene graph mesh arrays.
The node to add.
Instantiates a Cube mesh and appends it to the scene tree.
Material parameters and sizing options.
The newly allocated Cube Mesh.
Instantiates a copy of an existing Mesh template or hierarchy tree, sharing underlying Geometry buffers to optimize GPU draw calls via instancing.
Source Mesh template to clone.
Spatial transform overrides.
The newly allocated instantiated root Mesh or Node3D.
Appends a new Light node to the scene hierarchy. Programmatically resolves point or directional light sub-classes from configuration options.
Light instance or configuration options.
The resolved Light node.
Instantiates a Plane mesh and appends it to the scene tree.
Material parameters and width/depth dimensions.
The newly allocated Plane Mesh.
Instantiates a Sphere mesh and appends it to the scene tree.
Material parameters and radius subdivisions options.
The newly allocated Sphere Mesh.
Compiles a Mesh from raw vertex component arrays and appends it to the scene tree.
Mesh assembly configurations.
The newly programmatically assembled Mesh.
Releases scene resources, stops the render loop, disables debug panels, and cascades destruction to the renderer and context.
Asynchronously imports and displays an interactive, hardware-monitored performance debug panel.
Styling and anchor options.
A promise resolving to the debug panel.
Gets the active HTMLCanvasElement presentation surface.
Returns live render statistics computed for the active frame.
Read-only RenderInfo.
Asynchronously fetches a 3D model asset (GLB, GLTF, or OBJ), compiles GPU resources, and appends the resulting nodes to the scene hierarchy.
Relative or absolute address of the 3D model file.
Material parameters and spatial transformations.
A promise resolving to a container Node3D holding the loaded mesh segment nodes.
Detaches and removes an active Light node from the scene hierarchy and internal tracking.
The Light instance to remove.
Initiates the standard requestAnimationFrame render loop. Calls the provided update routine every frame while updating render statistics.
OptionalloopCallback: () => voidUpdate callback hook.
Registers and configures the active Camera viewpoints driving render passes. Automatically appends the Camera to the scene tree if it is not already present.
Camera instance or constructor configurations.
The resolved Camera node.
Performs a depth-first traversal of the node hierarchy starting from this node, executing the provided callback on each visited node.
The function to invoke for each node.
Recomputes the node's local transformation matrix. Base Node does not define individual translation, rotation, or scale properties. This should be overridden in subclasses (e.g. Node3D) that maintain distinct components.
Updates the global world matrix of this node and recursively propagates the updates down the hierarchy to all child nodes.
If true, forces transformation matrices to be recomputed even if they are not flagged as dirty.
StaticinitHigh-level initialization routine that resolves a canvas element, requests WebGPU adapters, boots GPUDevice services, and returns a new Scene container.
Target CSS selector string or direct HTMLCanvasElement reference.
A promise resolving to an initialized Scene.
ReadonlychildrenList of child nodes belonging to this node.
ReadonlyctxActive context reference.
Whether the local transform has changed and needs to be recomputed and propagated.
Local transformation matrix relative to the parent node.
Unique identifier or friendly name for the node.
Parent node in the scene graph. Null if this is the root node.
ReadonlyperfHigh-performance CPU profiling metrics recorder.
ReadonlyrendererHigh-performance WebGPU forward renderer.
Toggle debug visualization helpers for lights and collision bounds. Defaults to false.
Visibility flag. If false, this node and its descendants are typically skipped in rendering.
Global world transformation matrix relative to the scene origin.
Scene represents the root container of the engine's hierarchical scene graph. It coordinates active camera properties, registered light sources, visible meshes, background clear colors, and manages the high-performance requestAnimationFrame render loop, integrating performance tracking and debugging panels.