mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 22:06:40 +00:00
Fade out specularity according to light fade settings as well
This commit is contained in:
parent
f87aa02390
commit
debc37d93a
1 changed files with 1 additions and 0 deletions
|
@ -1160,6 +1160,7 @@ namespace SceneUtil
|
||||||
|
|
||||||
auto* light = transform.mLightSource->getLight(frameNum);
|
auto* light = transform.mLightSource->getLight(frameNum);
|
||||||
light->setDiffuse(light->getDiffuse() * fade);
|
light->setDiffuse(light->getDiffuse() * fade);
|
||||||
|
light->setSpecular(light->getSpecular() * fade);
|
||||||
transform.mLightSource->setLastAppliedFrame(frameNum);
|
transform.mLightSource->setLastAppliedFrame(frameNum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue