diff options
author | LaG1924 <lag1924@gmail.com> | 2021-12-25 07:37:53 +0100 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2021-12-25 07:37:53 +0100 |
commit | 9feb51764077093a95a7b98af4b936a242096087 (patch) | |
tree | 51d377a4560a7e12b3b404b0b043d9f64981caf3 /src/Render.cpp | |
parent | Added smooth lighting (diff) | |
download | AltCraft-9feb51764077093a95a7b98af4b936a242096087.tar AltCraft-9feb51764077093a95a7b98af4b936a242096087.tar.gz AltCraft-9feb51764077093a95a7b98af4b936a242096087.tar.bz2 AltCraft-9feb51764077093a95a7b98af4b936a242096087.tar.lz AltCraft-9feb51764077093a95a7b98af4b936a242096087.tar.xz AltCraft-9feb51764077093a95a7b98af4b936a242096087.tar.zst AltCraft-9feb51764077093a95a7b98af4b936a242096087.zip |
Diffstat (limited to 'src/Render.cpp')
-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; |