@equinor/videx-3d
    Preparing search index...

    Class AnnotationsPass

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    annotationsBuffer: Uint8Array
    annotationsData: AnnotationInstance[] = []
    annotationsMaterial: ShaderMaterial
    annotationsRenderTarget: WebGLRenderTarget
    annotationsTexSize: number = 100
    camera: PerspectiveCamera
    clearAlpha: number = 1
    clearColor: Color | null = null

    Explicit background for passes that clear the frame (e.g. RenderPass and the OIT opaque clear). When set, the pass clears to this colour/alpha instead of the renderer's current clear state, giving a single source of truth so the background is identical regardless of which base pass renders the scene. When null the pass falls back to the renderer's current clear colour/alpha.

    clock: Clock
    connectorRestStretch: number = 2.5

    Motion-independent budget floor: the connector may always reach this multiple of its resting length. Without it the budget collapses to ~rest length when the camera is slow/static, dropping connectors during the normal collision-driven label re-slotting (a transitioning label's frozen previous anchor lags the moving anchor, so the line briefly exceeds rest length). Only genuinely runaway connectors are then suppressed.

    connectorStretchSlack: number = 2
    connectorTargetFrameTime: number = 0.016

    Connector-length gate: suppress connector lines that stretch far beyond what a resting connector plus reasonable per-frame motion (at connectorTargetFrameTime) would produce. Avoids long, distracting lines during low fps / fast camera moves.

    ctx: CanvasRenderingContext2D
    dataTextureNeedsUpdate: boolean = false
    fullscreenRenderer: FullscreenRenderer = ...
    isBusy: boolean = false
    maxVisible: number
    overlayTexture: CanvasTexture<HTMLCanvasElement> | null = null
    pointer: Vector2
    unsubscribeListeners: () => void
    writeToScreen: boolean = false

    Methods

    • Parameters

      • renderer: WebGLRenderer
      • buffer: WebGLRenderTarget<Texture<unknown>> | null

      Returns void

    • Parameters

      • width: number
      • height: number
      • pixelRatio: number

      Returns void