mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-29 12:11:34 +00:00
Merge branch 'particle_vertex' into 'master'
Soft enforce vertex lighting on particle systems (i.e. with exception of normal maps) See merge request OpenMW/openmw!2098
This commit is contained in:
commit
9003e83470
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