From 7bed2208e9f0a7cb2ba78a7286e5d472e336a949 Mon Sep 17 00:00:00 2001 From: "glassmancody.info" Date: Mon, 4 Jul 2022 18:28:29 -0700 Subject: [PATCH] only force ppl on particles with normal maps --- components/shader/shadervisitor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {