1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 09:32:45 +00:00

Fade out specularity according to light fade settings as well

This commit is contained in:
Alexei Kotov 2024-05-23 19:05:10 +03:00
parent f87aa02390
commit debc37d93a

View File

@ -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);
}