prev:
text: 'DepthBufferPlugin'
link: './DepthBufferPlugin'
next:
text: 'GBufferPlugin'
link: './GBufferPlugin'
Example — Source Code — API Reference
GBufferPlugin if using both DepthBufferPlugin and NormalBufferPlugin to render both depth and normal buffers in a single pass.
:::import {ThreeViewer, NormalBufferPlugin} from 'threepipe'
const viewer = new ThreeViewer({...})
const normalPlugin = viewer.addPluginSync(new NormalBufferPlugin())
const normalTarget = normalPlugin.target;
// Use the normal target by accessing `normalTarget.texture`.