Fix incorrectly updated condition
parent
d0ed0d79de
commit
aacdbaec95
|
@ -1234,7 +1234,7 @@ AddDirectionalLightContrib(unsigned int i, const ShaderProperties& props)
|
||||||
source += "diff.rgb += " + LightProperty(i, "diffuse") + " * d;\n";
|
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";
|
source += AssignDiffuse(i, props) + " mix(NL, NL / (max(NV, 0.001) + NL), lunarLambert);\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue