mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 16:20:21 +00:00
only force ppl on particles with normal maps
This commit is contained in:
parent
c9264de22a
commit
7bed2208e9
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user