1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-28 23:39:43 +00:00

shadervisitor.cpp

This commit is contained in:
Bo Svensson 2021-09-14 11:37:23 +00:00 committed by GitHub
parent 3415f12e12
commit 2cebd19432
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -458,7 +458,7 @@ namespace Shader
defineMap[texIt->second + std::string("UV")] = std::to_string(texIt->first);
}
if (defineMap["diffuseMap"] == 0)
if (defineMap["diffuseMap"] == "0")
writableStateSet->addUniform(new osg::Uniform("useDiffuseMapForShadowAlpha", false));
defineMap["parallax"] = reqs.mNormalHeight ? "1" : "0";