1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 21:15:36 +00:00

MACARONI AND TODD

This commit is contained in:
glassmancody.info 2022-08-12 11:45:40 -07:00
parent 8e7ddc7c0d
commit f10e71cb54

View file

@ -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