mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 18:59:57 +00:00
Change the renderOrder of composite maps to ensure they are updated before water reflections or other cameras that may be using it.
This commit is contained in:
parent
b1d4bb5708
commit
7e4450da55
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ osg::ref_ptr<osg::Group> ChunkManager::createCompositeMapRTT(osg::ref_ptr<osg::T
|
|||
camera->setClearColor(osg::Vec4(0.f, 0.f, 0.f, 1.f));
|
||||
camera->setClearMask(GL_COLOR_BUFFER_BIT);
|
||||
camera->setViewport(0, 0, mCompositeMapSize, mCompositeMapSize);
|
||||
camera->setRenderOrder(osg::Camera::PRE_RENDER);
|
||||
camera->setRenderOrder(osg::Camera::PRE_RENDER, -1);
|
||||
camera->setImplicitBufferAttachmentMask(osg::DisplaySettings::IMPLICIT_COLOR_BUFFER_ATTACHMENT); // no need for a depth buffer
|
||||
|
||||
return camera;
|
||||
|
|
Loading…
Reference in a new issue