From debc37d93a559bd0c0e6672d9caef1b17fbc4d9c Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Thu, 23 May 2024 19:05:10 +0300 Subject: [PATCH] Fade out specularity according to light fade settings as well --- components/sceneutil/lightmanager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/components/sceneutil/lightmanager.cpp b/components/sceneutil/lightmanager.cpp index c76f0b6b5c..aa94495519 100644 --- a/components/sceneutil/lightmanager.cpp +++ b/components/sceneutil/lightmanager.cpp @@ -1160,6 +1160,7 @@ namespace SceneUtil auto* light = transform.mLightSource->getLight(frameNum); light->setDiffuse(light->getDiffuse() * fade); + light->setSpecular(light->getSpecular() * fade); transform.mLightSource->setLastAppliedFrame(frameNum); }