MACARONI AND TODD

post_malone
glassmancody.info 2 years ago
parent 8e7ddc7c0d
commit f10e71cb54

@ -80,6 +80,9 @@ namespace MWRender
else
{
opaqueFbo->apply(state, osg::FrameBufferObject::DRAW_FRAMEBUFFER);
state.glDrawBuffer(GL_NONE);
state.glReadBuffer(GL_NONE);
ext->glBlitFramebuffer(0, 0, tex->getTextureWidth(), tex->getTextureHeight(), 0, 0, tex->getTextureWidth(), tex->getTextureHeight(), GL_DEPTH_BUFFER_BIT, GL_NEAREST);
}
@ -92,6 +95,8 @@ namespace MWRender
return;
opaqueFbo->apply(state, osg::FrameBufferObject::DRAW_FRAMEBUFFER);
state.glDrawBuffer(GL_NONE);
state.glReadBuffer(GL_NONE);
// draw transparent post-pass to populate a postprocess friendly depth texture with alpha-clipped geometry

Loading…
Cancel
Save