Native 2D canvas gizmo and overlay renderer for Lens.

Renders camera markers, target vectors, camera bounds, screen center crosshair, and supports custom application hooks (e.g. nameplates, reticles) decoupled from the game WebGL scene graph.

Constructors

Methods

  • Cleans up listeners and removes canvas if automatically created.

    Returns void

  • Gets the canvas element used by this renderer.

    Returns HTMLCanvasElement

  • Gets current debug options.

    Returns Readonly<CameraDebugOptions>

  • Clears and renders gizmos for all registered cameras.

    Parameters

    • activeCamera: null | BaseCamera

      Currently active view eye camera.

    • allCameras: BaseCamera[]

      List of all camera instances.

    Returns void

  • Resizes the canvas to match current window dimensions.

    Returns void

  • Updates debug options.

    Parameters

    Returns void