diff --git a/components/shader/shadervisitor.cpp b/components/shader/shadervisitor.cpp index fdcabedeb2..5f7225c6fc 100644 --- a/components/shader/shadervisitor.cpp +++ b/components/shader/shadervisitor.cpp @@ -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(&node)) + defineMap["forcePPL"] = "0"; if (reqs.mAlphaBlend && mSupportsNormalsRT) {