API

Function createOverlayScene

  • Create a scene that composites over baseScene on the base scene's surface.

    The overlay keeps its own camera, lights, and freshly cleared depth buffer, but loads the supplied color target without discovering any base-scene attachment. The caller owns and initializes rt and rst before the overlay renders. Register it with registerScene in either order relative to the base; registration keeps every overlay immediately after its base (sibling overlays in registration order, nested overlays depth-first), so later contexts such as text renderers draw on top. While the base scene (or any scene in its overlay chain) is not registered, the overlay stays registered but does no update or render work.

    Parameters

    Returns SceneContext