mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 16:15:33 +00:00
use correct indexed color mask
This commit is contained in:
parent
895779f2ec
commit
651916694c
1 changed files with 2 additions and 3 deletions
|
@ -12,7 +12,7 @@
|
||||||
#include <osg/Multisample>
|
#include <osg/Multisample>
|
||||||
#include <osg/Texture>
|
#include <osg/Texture>
|
||||||
#include <osg/ValueObject>
|
#include <osg/ValueObject>
|
||||||
#include <osg/Capability>
|
#include <osg/ColorMaski>
|
||||||
|
|
||||||
#include <osgParticle/ParticleSystem>
|
#include <osgParticle/ParticleSystem>
|
||||||
|
|
||||||
|
@ -636,8 +636,7 @@ namespace Shader
|
||||||
{
|
{
|
||||||
if (reqs.mSoftParticles)
|
if (reqs.mSoftParticles)
|
||||||
defineMap["disableNormals"] = "1";
|
defineMap["disableNormals"] = "1";
|
||||||
else
|
writableStateSet->setAttribute(new osg::ColorMaski(1, false, false, false, false));
|
||||||
writableStateSet->setAttribute(new osg::Disablei(GL_BLEND, 1));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (writableStateSet->getMode(GL_ALPHA_TEST) != osg::StateAttribute::INHERIT && !previousAddedState->hasMode(GL_ALPHA_TEST))
|
if (writableStateSet->getMode(GL_ALPHA_TEST) != osg::StateAttribute::INHERIT && !previousAddedState->hasMode(GL_ALPHA_TEST))
|
||||||
|
|
Loading…
Reference in a new issue