mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-05 02:19:43 +00:00
Merge branch 'macos_shadow_quickfix' into 'master'
Workaround shadow issue on macOS See merge request OpenMW/openmw!937
This commit is contained in:
commit
9bae89cc95
1 changed files with 2 additions and 1 deletions
|
@ -566,8 +566,9 @@ MWShadowTechnique::ShadowData::ShadowData(MWShadowTechnique::ViewDependentData*
|
|||
_camera = new osg::Camera;
|
||||
_camera->setName("ShadowCamera");
|
||||
_camera->setReferenceFrame(osg::Camera::ABSOLUTE_RF_INHERIT_VIEWPOINT);
|
||||
#ifndef __APPLE__ // workaround shadow issue on macOS, https://gitlab.com/OpenMW/openmw/-/issues/6057
|
||||
_camera->setImplicitBufferAttachmentMask(0, 0);
|
||||
|
||||
#endif
|
||||
//_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