Variable RENDER_PASSESConst Internal

RENDER_PASSES: {
    HIGHLIGHTED: number;
    NOT_RENDERED: number;
    OPAQUE: number;
    PICK: number;
    SELECTED: number;
    SNAP: number;
    SNAP_INIT: number;
    TRANSPARENT: number;
    XRAYED: number;
} = ...

Defines the rendering passes used by the WebGLRenderer.

Each rendering pass represents a specific stage or mode in the rendering pipeline. These passes are used to control how objects are rendered, including color, transparency, silhouette effects, and picking.

Type declaration

  • HIGHLIGHTED: number

    Render highlighted silhouettes. Used to accentuate objects that are highlighted.

  • NOT_RENDERED: number

    Skipped - suppress rendering. Objects with this pass are not rendered.

  • OPAQUE: number

    Render opaque objects in their normal colors.

  • PICK: number

    Picking pass. Used for object picking to determine which object is under the cursor or selected.

  • SELECTED: number

    Render selected silhouettes. Used to accentuate objects that are selected.

  • SNAP: number

    Snap pass — rasterises vertices (as 1-pixel points) or edges (as 1-pixel lines) into the same FBO populated by RENDER_PASSES.SNAP_INIT, but only where they pass the depth test. The fragment shader writes the high-precision view-space position so JS can read back and pick the nearest snap target to the cursor.

  • SNAP_INIT: number

    Snap-init pass — populates the snap framebuffer's depth and view-position outputs from triangle surfaces. Sets up the scene under a small viewport centred on the cursor so the subsequent RENDER_PASSES.SNAP pass can z-test vertex / edge primitives against real geometry.

  • TRANSPARENT: number

    Render transparent objects in their normal colors

  • XRAYED: number

    Render x-rayed silhouettes. Used to render objects with an x-ray effect.