// Create MRT
const mrt = new MultiRenderTarget('', {
width: 100, height: 100
}, 3, scene, {
generateDepthBuffer: true,
generateStencilBuffer: true,
defaultType: Engine.TEXTURETYPE_FLOAT,
});
// Render to MRT
scene.customRenderTargets.push(mrt);
// ... render stuff to MRT ...
// Switch back to defaultframebuffer
scene.customRenderTargets = [];
// Before diposing MRT..., i want to
// read its depth buffer then write to defaultframebuffer
// ?? how ??
thanks.