We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cba5d6 commit 3539862Copy full SHA for 3539862
Source/RunActivity/Viewer3D/RenderFrame.cs
@@ -534,9 +534,9 @@ public void Clear()
534
NumLights = 0;
535
}
536
537
- bool lastLightState;
538
- double fadeStartTimer;
539
- float fadeDuration = -1;
+ static bool lastLightState;
+ static double fadeStartTimer;
+ static float fadeDuration = -1;
540
541
public void PrepareFrame(Viewer viewer)
542
{
@@ -583,11 +583,6 @@ public void PrepareFrame(Viewer viewer)
583
584
lastLightState = lightState;
585
586
- else
587
- {
588
- fadeStartTimer = 0;
589
- fadeDuration = 0;
590
- }
591
if (SolarDirection.Y <= -0.05)
592
593
clampValue = 1; // at nighttime max headlight
0 commit comments