1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-04-16 08:42:23 +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); 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)); writableStateSet->addUniform(new osg::Uniform("useDiffuseMapForShadowAlpha", false));
defineMap["parallax"] = reqs.mNormalHeight ? "1" : "0"; defineMap["parallax"] = reqs.mNormalHeight ? "1" : "0";