1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 17:29:55 +00:00

only force ppl on particles with normal maps

This commit is contained in:
glassmancody.info 2022-07-04 18:28:29 -07:00
parent c9264de22a
commit 7bed2208e9

View file

@ -627,10 +627,10 @@ namespace Shader
bool simpleLighting = false;
node.getUserValue("simpleLighting", simpleLighting);
if (simpleLighting)
{
defineMap["forcePPL"] = "1";
defineMap["endLight"] = "0";
}
if (simpleLighting || dynamic_cast<osgParticle::ParticleSystem*>(&node))
defineMap["forcePPL"] = "0";
if (reqs.mAlphaBlend && mSupportsNormalsRT)
{