@pixi/3d
    Preparing search index...

    Interface DepthMapViewerOptionsAdvanced

    Constructor options for DepthMapViewer

    Also takes pixi's MeshOptions, such as label and position, except geometry and shader, which the viewer builds.

    const viewer = new DepthMapViewer({ texture: depthArray, size: 384, position: { x: 8, y: 8 } });
    app.stage.addChild(viewer);
    interface DepthMapViewerOptions {
        size?: number;
        texture: Texture;
    }

    Hierarchy

    Index
    size?: number

    Width and height of the quad, in pixels

    256
    
    texture: Texture

    Depth array texture to show