1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00

shadervisitor.cpp uniform

This commit is contained in:
Bo Svensson 2021-09-12 09:23:36 +00:00 committed by GitHub
parent 52a9b4d989
commit 6d12a240a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -340,15 +340,6 @@ namespace Shader
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();