diff --git a/components/shader/shadervisitor.cpp b/components/shader/shadervisitor.cpp index cb0173c648..cbd2863e46 100644 --- a/components/shader/shadervisitor.cpp +++ b/components/shader/shadervisitor.cpp @@ -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";