From 10c1daf676223e71049d05fa266eac6b10fe2dff Mon Sep 17 00:00:00 2001 From: Cat Flynn Date: Sun, 26 Feb 2023 03:27:15 +0000 Subject: [PATCH] adjust fog depth --- shader/include/constants.glsl | 2 +- shader/include/depth.glsl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shader/include/constants.glsl b/shader/include/constants.glsl index 104b27f..e07a247 100644 --- a/shader/include/constants.glsl +++ b/shader/include/constants.glsl @@ -1,4 +1,4 @@ -const float INF = 30.0; +const float INF = 45.0; const float PI = 3.14159; const float E = 2.71828; const int BOUNCES = 5; diff --git a/shader/include/depth.glsl b/shader/include/depth.glsl index 34fc7f2..77adf97 100644 --- a/shader/include/depth.glsl +++ b/shader/include/depth.glsl @@ -7,7 +7,7 @@ float getLogarithmicDepth(float distance) { // n roughly correlates to steepness of log curve // TODO: what does this mean in mathematical terms?? - float n = 4; + float n = 2; float f = INF; float z = distance;