From 2c78d4f5004096c8fc1b58d66fbe01d0d370984e Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Fri, 24 Aug 2018 13:58:04 +0500 Subject: Smooth sunset and dawn --- src/RendererWorld.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RendererWorld.cpp b/src/RendererWorld.cpp index d91ea0e..bb8c8f4 100644 --- a/src/RendererWorld.cpp +++ b/src/RendererWorld.cpp @@ -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) -- cgit v1.2.3