|
|
@ -54,7 +54,7 @@ ShadowsBin::ShadowsBin()
|
|
|
|
|
|
|
|
|
|
|
|
mShaderAlphaTestStateSet = new osg::StateSet;
|
|
|
|
mShaderAlphaTestStateSet = new osg::StateSet;
|
|
|
|
mShaderAlphaTestStateSet->addUniform(new osg::Uniform("alphaTestShadows", true));
|
|
|
|
mShaderAlphaTestStateSet->addUniform(new osg::Uniform("alphaTestShadows", true));
|
|
|
|
mShaderAlphaTestStateSet->setMode(GL_BLEND, osg::StateAttribute::OFF | osg::StateAttribute::OVERRIDE);
|
|
|
|
mShaderAlphaTestStateSet->setMode(GL_BLEND, osg::StateAttribute::OFF | osg::StateAttribute::PROTECTED | osg::StateAttribute::OVERRIDE);
|
|
|
|
|
|
|
|
|
|
|
|
for (size_t i = 0; i < sCastingPrograms.size(); ++i)
|
|
|
|
for (size_t i = 0; i < sCastingPrograms.size(); ++i)
|
|
|
|
{
|
|
|
|
{
|
|
|
|