Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
illuna-minetest
Commits
1ec1a605
Commit
1ec1a605
authored
9 years ago
by
RealBadAngel
Committed by
est31
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
HOTFIX: fix too agressive block culling
parent
c3b27975
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/util/numeric.cpp
+4
-1
4 additions, 1 deletion
src/util/numeric.cpp
with
4 additions
and
1 deletion
src/util/numeric.cpp
+
4
−
1
View file @
1ec1a605
...
...
@@ -244,7 +244,10 @@ bool isBlockInSight(v3s16 blockpos_b, v3f camera_pos, v3f camera_dir,
f32
cosangle
=
dforward
/
blockpos_adj
.
getLength
();
// If block is not in the field of view, skip it
if
(
cosangle
<
cos
(
camera_fov
/
2
))
// HOTFIX: use sligthly increased angle (+10%) to fix too agressive
// culling. Somebody have to find out whats wrong with the math here.
// Previous value: camera_fov / 2
if
(
cosangle
<
cos
(
camera_fov
*
0.55
))
return
false
;
return
true
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment