1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Fog: Make fraction of visible distance at which fog starts configurable

Optimise the fetching of global settings 'camera_smoothing',
'cinematic' and 'cinematic_camera_smoothing'.
Cache 'cam_smoothing'.
This commit is contained in:
Lars Hofhansl 2016-12-03 21:43:25 -08:00 committed by paramat
parent 9714cdcf4b
commit 075833e393
8 changed files with 43 additions and 12 deletions

View file

@ -21,7 +21,7 @@ bool texSeamless = false;
const float e = 2.718281828459;
const float BS = 10.0;
const float fogStart = 0.4;
const float fogStart = FOG_START;
const float fogShadingParameter = 1 / ( 1 - fogStart);
#ifdef ENABLE_TONE_MAPPING