From e5c0d27efeafa46c1f40f395d861df85eee053c8 Mon Sep 17 00:00:00 2001 From: Rob Blanckaert Date: Sat, 7 Oct 2017 09:11:48 -0400 Subject: [PATCH] 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. --- builtin/settingtypes.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/builtin/settingtypes.txt b/builtin/settingtypes.txt index 51d34e4..11651c9 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