1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Tune map rendering and related diagnostics

This commit is contained in:
Perttu Ahola 2011-10-18 19:18:01 +03:00
parent 8ead29a302
commit 4e1055543c
4 changed files with 64 additions and 21 deletions

View file

@ -236,7 +236,7 @@ bool isBlockInSight(v3s16 blockpos_b, v3f camera_pos, v3f camera_dir,
// If block is (nearly) touching the camera, don't
// bother validating further (that is, render it anyway)
if(d > block_max_radius * 1.5)
if(d > block_max_radius)
{
// Cosine of the angle between the camera direction
// and the block direction (camera_dir is an unit vector)