mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-15 16:39:41 +00:00
shadervisitor.cpp uniform
This commit is contained in:
parent
52a9b4d989
commit
6d12a240a3
1 changed files with 0 additions and 9 deletions
|
@ -340,15 +340,6 @@ namespace Shader
|
||||||
mRequirements.back().mShaderRequired = true;
|
mRequirements.back().mShaderRequired = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (diffuseMap)
|
|
||||||
{
|
|
||||||
if (!writableStateSet)
|
|
||||||
writableStateSet = getWritableStateSet(node);
|
|
||||||
// We probably shouldn't construct a new version of this each time as Uniforms use pointer comparison for early-out.
|
|
||||||
// Also it should probably belong to the shader manager or be applied by the shadows bin
|
|
||||||
writableStateSet->addUniform(new osg::Uniform("useDiffuseMapForShadowAlpha", true));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const osg::StateSet::AttributeList& attributes = stateset->getAttributeList();
|
const osg::StateSet::AttributeList& attributes = stateset->getAttributeList();
|
||||||
|
|
Loading…
Reference in a new issue