1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 06:53:53 +00:00

Merge branch 'test' into 'master'

[Postprocessing] Dont ignore tested objects in postpass

See merge request OpenMW/openmw!2236
This commit is contained in:
psi29a 2022-08-03 16:09:46 +00:00
commit 17fcc254c0

View file

@ -109,9 +109,6 @@ namespace MWRender
if (rl->_drawable->getNodeMask() == Mask_ParticleSystem || rl->_drawable->getNodeMask() == Mask_Effect)
continue;
if (ss->getAttribute(osg::StateAttribute::ALPHAFUNC))
continue;
if (ss->getAttribute(osg::StateAttribute::MATERIAL)) {
const osg::Material* mat = static_cast<const osg::Material*>(ss->getAttribute(osg::StateAttribute::MATERIAL));
if (mat->getDiffuse(osg::Material::FRONT).a() < 0.5)