Threepipe Tweakpane Editor Plugin
    Preparing search index...

    Class SelectionMaskPass

    Renders the meshes of SelectionOutlinePlugin into its mask target, with their item data and linear depth. The meshes are drawn on SelectionMaskPass.Layer during the pass.

    The mask is kept between frames: the pass draws it in the first frame after a reset of the render (a change of the scene or the camera), after needsUpdate is set, for another camera, or after a resize of the target. So the frames of a progressive render do not draw the meshes again, and after a reset the mask is the one of the first frame, which the SSAAPlugin does not jitter.

    Hierarchy

    Implements

    • IPipelinePass<"selectionMask">
    Index
    after: string[] = ...

    Passes that should run before this pass

    before: string[] = ...

    Passes that should run after this pass

    camera?: ICamera<ICameraEventMap>
    enabled: boolean = true
    getItems: () => Map<Object3D<Object3DEventMap>, Vector3> = ...
    needsUpdate: boolean = true

    Draw the mask in the next render. Set it after a change that does not reset the render (the selection, the hover).

    overrideMaterial: ShaderMaterial
    passId: "selectionMask" = 'selectionMask'

    Unique id for the pass. Used to determine the order of passes in the pipeline.

    required: string[] = ...

    Passes that are required to be present in the pipeline to run this pass.

    scene?: IScene<ISceneEventMap>
    target: () => WebGLRenderTarget<Texture<TextureEventMap>> | undefined
    Layer: number = 7

    The camera layer that the pass renders

    • This function gets called at the beginning of every frame where this pass would be enabled.

      Parameters

      • scene: IScene
      • camera: ICamera
      • renderManager: IRenderManager

      Returns void