1
0
Fork 0
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:
psi29a 2022-07-05 10:15:36 +00:00
commit 9003e83470

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)
{