diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-10-18 21:08:31 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-10-18 21:08:31 +0300 |
commit | 9b907dd65a2c045d10605894fdaea504200e2be7 (patch) | |
tree | 411bffac25c47471bdd05eabcbf7c210ec3a231d /src/map.cpp | |
parent | 28f2fdb6dec0c54ce9e32df79a73ef19aee03fd5 (diff) | |
download | minetest-9b907dd65a2c045d10605894fdaea504200e2be7.tar.xz |
Try to tune fog to work well on high-end machines also
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map.cpp b/src/map.cpp index febc40ddd..ba4130ca2 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -3659,13 +3659,13 @@ void ClientMap::renderMap(video::IVideoDriver* driver, s32 pass) // Take a fair amount as we will be dropping more out later // Umm... these additions are a bit strange but they are needed. v3s16 p_blocks_min( - p_nodes_min.X / MAP_BLOCKSIZE - 2, - p_nodes_min.Y / MAP_BLOCKSIZE - 2, - p_nodes_min.Z / MAP_BLOCKSIZE - 2); + p_nodes_min.X / MAP_BLOCKSIZE - 3, + p_nodes_min.Y / MAP_BLOCKSIZE - 3, + p_nodes_min.Z / MAP_BLOCKSIZE - 3); v3s16 p_blocks_max( - p_nodes_max.X / MAP_BLOCKSIZE + 0, - p_nodes_max.Y / MAP_BLOCKSIZE + 0, - p_nodes_max.Z / MAP_BLOCKSIZE + 0); + p_nodes_max.X / MAP_BLOCKSIZE + 1, + p_nodes_max.Y / MAP_BLOCKSIZE + 1, + p_nodes_max.Z / MAP_BLOCKSIZE + 1); u32 vertex_count = 0; u32 meshbuffer_count = 0; |