From f5e88548f1b3a6791272116cb07c6f71446aa8de Mon Sep 17 00:00:00 2001 From: past-due <30942300+past-due@users.noreply.github.com> Date: Sun, 3 Mar 2024 16:52:24 -0500 Subject: [PATCH] Adjust skybox fog Now that we no longer need the fade-to-black trick to cover up stencil shadow artifacts at the bottom of the skybox, just use fog color below the skybox image. --- data/base/shaders/skybox.vert | 5 +---- data/base/shaders/vk/skybox.vert | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/data/base/shaders/skybox.vert b/data/base/shaders/skybox.vert index ff77407e2d1..8775394e5da 100644 --- a/data/base/shaders/skybox.vert +++ b/data/base/shaders/skybox.vert @@ -33,9 +33,6 @@ void main() if(fog_enabled > 0) { - fog = - vertex.y < -0.7 ? vec4(0, 0, 0, 1) : - vertex.y < 0.5 ? fog_color : - vec4(fog_color.xyz, 0); + fog = vertex.y < 0.5 ? fog_color : vec4(fog_color.xyz, 0); } } diff --git a/data/base/shaders/vk/skybox.vert b/data/base/shaders/vk/skybox.vert index 88549dde144..b2fc20772a8 100644 --- a/data/base/shaders/vk/skybox.vert +++ b/data/base/shaders/vk/skybox.vert @@ -25,9 +25,6 @@ void main() if(fog_enabled > 0) { - fog = - vertex.y < -0.7 ? vec4(0, 0, 0, 1) : - vertex.y < 0.5 ? fog_color : - vec4(fog_color.xyz, 0); + fog = vertex.y < 0.5 ? fog_color : vec4(fog_color.xyz, 0); } }