Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Avoid drawing invisible blocks on the client.
- Loading branch information
Showing
with
1 addition
and
7 deletions.
-
+1
−7
src/client/clientmap.cpp
|
@@ -124,12 +124,6 @@ void ClientMap::updateDrawList() |
|
|
|
|
|
v3f camera_position = m_camera_position; |
|
|
v3f camera_direction = m_camera_direction; |
|
|
f32 camera_fov = m_camera_fov; |
|
|
|
|
|
// Use a higher fov to accomodate faster camera movements. |
|
|
// Blocks are cropped better when they are drawn. |
|
|
// Or maybe they aren't? Well whatever. |
|
|
camera_fov *= 1.2; |
|
|
|
|
|
v3s16 cam_pos_nodes = floatToInt(camera_position, BS); |
|
|
v3s16 p_blocks_min; |
|
@@ -190,7 +184,7 @@ void ClientMap::updateDrawList() |
|
|
|
|
|
float d = 0.0; |
|
|
if (!isBlockInSight(block->getPos(), camera_position, |
|
|
camera_direction, camera_fov, range, &d)) |
|
|
camera_direction, m_camera_fov, range, &d)) |
|
|
continue; |
|
|
|
|
|
|
|
|