Fix incorrectly updated condition

pull/1135/head
Hleb Valoshka 2021-10-14 13:57:16 +03:00
parent d0ed0d79de
commit aacdbaec95
1 changed files with 1 additions and 1 deletions

View File

@ -1234,7 +1234,7 @@ AddDirectionalLightContrib(unsigned int i, const ShaderProperties& props)
source += "diff.rgb += " + LightProperty(i, "diffuse") + " * d;\n";
}
}
else if ((props.lightModel == ShaderProperties::LunarLambertModel) != 0)
else if ((props.lightModel & ShaderProperties::LunarLambertModel) != 0)
{
source += AssignDiffuse(i, props) + " mix(NL, NL / (max(NV, 0.001) + NL), lunarLambert);\n";
}