mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-21 00:39:58 +00:00
Don't bind unnecessary colour buffer when drawing shadow maps
This commit is contained in:
parent
9902945c49
commit
55f65752fd
@ -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…
x
Reference in New Issue
Block a user