mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 06:45:35 +00:00
MACARONI AND TODD
This commit is contained in:
parent
8e7ddc7c0d
commit
f10e71cb54
1 changed files with 5 additions and 0 deletions
|
@ -80,6 +80,9 @@ namespace MWRender
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
opaqueFbo->apply(state, osg::FrameBufferObject::DRAW_FRAMEBUFFER);
|
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);
|
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;
|
return;
|
||||||
|
|
||||||
opaqueFbo->apply(state, osg::FrameBufferObject::DRAW_FRAMEBUFFER);
|
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
|
// draw transparent post-pass to populate a postprocess friendly depth texture with alpha-clipped geometry
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue