@pixi/3d
    Preparing search index...

    Interface WireframePassOptions

    Constructor options for WireframePass

    new WireframePass({ color: 0x00ff66, enabled: false });
    
    interface WireframePassOptions {
        camera?: Camera3D;
        color?: ColorSource;
        description?: string;
        enabled?: boolean;
        sort?: "key" | "distance";
        stage?: SceneStage;
    }

    Hierarchy

    Index
    camera?: Camera3D

    Camera to draw from, instead of the view's own

    Add it to the view's scene (view.root.addChild(camera)) so its transform stays current. Its viewport places the image. Give it a renderTexture to draw into that texture instead, for a material to show; a mesh that samples the texture while this camera draws it sees last frame's picture. The pass draws only the meshes opted in by name, so glass seen from this camera needs passes of its own, added from the build of a Pass3D listed after this one at the same stage; RenderPassOptions#camera lists them.

    color?: ColorSource

    Line colour

    0x00ff00
    
    new WireframePass({ color: 0xff00ff });
    
    description?: string

    Human-readable explanation shown by graph tooling

    enabled?: boolean

    Whether the pass starts enabled; see Pass3D#enabled

    true
    
    view.passes = [new MeshPass({ name: 'wireframe', enabled: false })];
    
    sort?: "key" | "distance"

    Draw order; ForwardRenderPassOptions#sort has the choices

    'key'
    
    stage?: SceneStage

    Where in the default graph the pass draws

    Left out, a pass whose camera has a render texture draws at 'beforeOpaque', so the texture is complete before any material samples it; any other pass draws at 'afterOpaque'.