From baa4fe1d44c2105fefd7a47025b4a35ae94fea66 Mon Sep 17 00:00:00 2001 From: CobaltXII Date: Tue, 1 Jan 2019 22:00:24 -0500 Subject: [PATCH] Increased fog density --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index a233024..9c5eda6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -690,7 +690,7 @@ int main(int argc, char** argv) else { // Can't destroy water. - + if (the_world->get_id_safe(px, py, pz) != id_water) { the_accessor->set_id_safe(px, py, pz, id_air); @@ -825,7 +825,7 @@ int main(int argc, char** argv) // Pass the fog distance to the block_shader_program. - glUniform1f(glGetUniformLocation(block_shader_program, "fog_distance"), view_distance * view_distance); + glUniform1f(glGetUniformLocation(block_shader_program, "fog_distance"), view_distance * view_distance / 1.5f); // Pass the current time (in seconds) to the block_shader_program.