mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 16:15:31 +00:00
Adjust PulseSlow light controller (Fixes #1963)
This commit is contained in:
parent
a49058721e
commit
3bd2aaddea
1 changed files with 3 additions and 3 deletions
|
@ -76,7 +76,7 @@ namespace SceneUtil
|
|||
if(mType == LT_Pulse || mType == LT_PulseSlow)
|
||||
{
|
||||
cycle_time = 2.0f * pi;
|
||||
time_distortion = 20.0f;
|
||||
time_distortion = mType == LT_Pulse ? 20.0f : 4.f;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -114,9 +114,9 @@ namespace SceneUtil
|
|||
else if(mType == LT_FlickerSlow)
|
||||
brightness = 0.75f + flickerAmplitude(mDeltaCount*slow)*0.25f;
|
||||
else if(mType == LT_Pulse)
|
||||
brightness = 1.0f + pulseAmplitude(mDeltaCount*fast)*0.25f;
|
||||
brightness = 0.7f + pulseAmplitude(mDeltaCount*fast)*0.3f;
|
||||
else if(mType == LT_PulseSlow)
|
||||
brightness = 1.0f + pulseAmplitude(mDeltaCount*slow)*0.25f;
|
||||
brightness = 0.7f + pulseAmplitude(mDeltaCount*slow)*0.3f;
|
||||
|
||||
static_cast<SceneUtil::LightSource*>(node)->getLight()->setDiffuse(mDiffuseColor * brightness);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue