Far-clip distance ~ Render distance
float num = (0.3f + (NormalizedFarClipDistance * 0.7f)) * 2048f; // 614.4 - 2048(0 - 1)
if (clFarClipDistance.hasValue)
{
num = Mathf.Clamp(clFarClipDistance.value, 16f, 2048f);
}
numis the final FarClipPlane valueclFarClipDistanceis the command line "-FarClipDistance" value
The in-game render distance slider ranges from 614.4 to 2048
The editor render distance slider ranges from 1228.8 to 4096
Source: SDG.Unturned/GraphicsSettings.cs
#performance #render-distance #rendering