mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-11 21:36:40 -04:00
shadervisitor.cpp uniform
This commit is contained in:
parent
52a9b4d989
commit
6d12a240a3
@ -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…
x
Reference in New Issue
Block a user