mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Finalize settings, torch fix
This commit is contained in:
parent
71c30a31df
commit
4ba473b684
15 changed files with 318 additions and 152 deletions
|
@ -62,7 +62,8 @@ namespace SceneUtil
|
|||
mPhase = mPhase <= 0.5f ? 1.f : 0.25f;
|
||||
}
|
||||
|
||||
static_cast<SceneUtil::LightSource*>(node)->getLight(nv->getTraversalNumber())->setDiffuse(mDiffuseColor * mBrightness);
|
||||
auto* lightSource = static_cast<SceneUtil::LightSource*>(node);
|
||||
lightSource->getLight(nv->getTraversalNumber())->setDiffuse(mDiffuseColor * mBrightness * lightSource->getActorFade());
|
||||
|
||||
traverse(node, nv);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue