Advanced
Constructor options for DepthMapViewer
Also takes pixi's MeshOptions, such as label and position, except geometry and shader, which the viewer builds.
MeshOptions
label
position
geometry
shader
const viewer = new DepthMapViewer({ texture: depthArray, size: 384, position: { x: 8, y: 8 } });app.stage.addChild(viewer); Copy
const viewer = new DepthMapViewer({ texture: depthArray, size: 384, position: { x: 8, y: 8 } });app.stage.addChild(viewer);
Optional
Width and height of the quad, in pixels
256 Copy
256
Depth array texture to show
Constructor options for DepthMapViewer
Also takes pixi's
MeshOptions, such aslabelandposition, exceptgeometryandshader, which the viewer builds.Example