]> git.localhorst.tv Git - blank.git/blobdiff - src/hud.cpp
update light levels from border on neighbor change
[blank.git] / src / hud.cpp
index 266b80ae9dcbdc4f7aa29984817152501813c621..0747cffbca3424364e5a91c43bfe38c3eaa91af5 100644 (file)
@@ -62,6 +62,8 @@ void HUD::Display(const Block &b) {
 void HUD::Render(DirectionalLighting &program) {
        if (block_visible) {
                program.SetLightDirection({ 1.0f, 3.0f, 5.0f });
+               // disable distance fog
+               program.SetFogDensity(0.0f);
                GLContext::ClearDepthBuffer();
                program.SetMVP(block_transform, view, projection);
                block.Draw();