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:
parent
f87aa02390
commit
debc37d93a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user