aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorRob Blanckaert <basicer@basicer.com>2017-10-07 09:11:48 -0400
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-10-07 15:11:48 +0200
commit3c93a56e16f03893f97b7d28b0a8a0e302cb55ca (patch)
treeb44d958848ac62e9bbd8713f5f89977fdd9dd4ec /builtin
parentf547452685b299712ff5aa15bf06b4cd6069deec (diff)
downloadminetest-3c93a56e16f03893f97b7d28b0a8a0e302cb55ca.tar.gz
minetest-3c93a56e16f03893f97b7d28b0a8a0e302cb55ca.tar.bz2
minetest-3c93a56e16f03893f97b7d28b0a8a0e302cb55ca.zip
Add setting for near plane distance. (#6395)
* Allow setting the near plane * - Add near_plane limit of 0.5 to prevent x-ray. - Add more details to near_plane setting.
Diffstat (limited to 'builtin')
-rw-r--r--builtin/settingtypes.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/builtin/settingtypes.txt b/builtin/settingtypes.txt
index 51d34e4b6..11651c9b2 100644
--- a/builtin/settingtypes.txt
+++ b/builtin/settingtypes.txt
@@ -532,6 +532,12 @@ pause_fps_max (FPS in pause menu) int 20
# View distance in nodes.
viewing_range (Viewing range) int 100 20 4000
+# Camera near plane distance in nodes, between 0 and 0.5
+# Most users will not need to change this.
+# Increasing can reduce artifacting on weaker GPUs.
+# 0.1 = Default, 0.25 = Good value for weaker tablets.
+near_plane (Near plane) float 0.1 0 0.5
+
# Width component of the initial window size.
screen_w (Screen width) int 1024