Skip to content

Commit

Permalink
Smooth sunset and dawn
Browse files Browse the repository at this point in the history
  • Loading branch information
LaG1924 committed Aug 24, 2018
1 parent 42f93f6 commit 2c78d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RendererWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ void RendererWorld::Render(RenderState & renderState) {
const float moonriseLength = moonriseMax - moonriseMin;

float mixLevel = 0;
int dayTime = gs->TimeOfDay;
float dayTime = gs->interpolatedTimeOfDay;
if (dayTime < 0)
dayTime *= -1;
while (dayTime > 24000)
Expand Down

0 comments on commit 2c78d4f

Please sign in to comment.