mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 21:45:35 +00:00
Merge branch 'no-colour-fbo-for-shadows' into 'master'
Don't bind unnecessary colour buffer when drawing shadow maps See merge request OpenMW/openmw!403
This commit is contained in:
commit
399270694f
1 changed files with 1 additions and 0 deletions
|
@ -555,6 +555,7 @@ MWShadowTechnique::ShadowData::ShadowData(MWShadowTechnique::ViewDependentData*
|
|||
_camera = new osg::Camera;
|
||||
_camera->setName("ShadowCamera");
|
||||
_camera->setReferenceFrame(osg::Camera::ABSOLUTE_RF_INHERIT_VIEWPOINT);
|
||||
_camera->setImplicitBufferAttachmentMask(0, 0);
|
||||
|
||||
//_camera->setClearColor(osg::Vec4(1.0f,1.0f,1.0f,1.0f));
|
||||
_camera->setClearColor(osg::Vec4(0.0f,0.0f,0.0f,0.0f));
|
||||
|
|
Loading…
Reference in a new issue