diff options
Diffstat (limited to '')
-rw-r--r-- | src/Render.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Render.cpp b/src/Render.cpp index 304f25f..fe9dc04 100644 --- a/src/Render.cpp +++ b/src/Render.cpp @@ -534,7 +534,7 @@ void Render::InitEvents() { listener.RegisterHandler("PlayerConnected", [this](const Event&) { stateString = "Loading terrain..."; - world = std::make_unique<RendererWorld>(fbTarget, Settings::ReadBool("deffered", false)); + world = std::make_unique<RendererWorld>(fbTarget, Settings::ReadBool("deffered", false), Settings::ReadBool("smoothlight", false)); world->MaxRenderingDistance = Settings::ReadDouble("renderDistance", 2.0f); PUSH_EVENT("UpdateSectionsRender", 0); }); @@ -606,6 +606,7 @@ void Render::InitEvents() { listener.RegisterHandler("SettingsUpdate", [this](const Event& eventData) { if (world) { + world->smoothLighting = Settings::ReadBool("smoothlight", false); float renderDistance = Settings::ReadDouble("renderDistance", 2.0f); if (renderDistance != world->MaxRenderingDistance) { world->MaxRenderingDistance = renderDistance; |