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:
parent
c9264de22a
commit
7bed2208e9
1 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue