From 0907fd0624babae826d97556eb77067425e29bcb Mon Sep 17 00:00:00 2001 From: past-due <30942300+past-due@users.noreply.github.com> Date: Sun, 3 Mar 2024 15:43:02 -0500 Subject: [PATCH] Update vk/terrain_combined_high.frag to match GL shader --- data/base/shaders/vk/terrain_combined_high.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/base/shaders/vk/terrain_combined_high.frag b/data/base/shaders/vk/terrain_combined_high.frag index 596c8a21130..3a4331b5a72 100644 --- a/data/base/shaders/vk/terrain_combined_high.frag +++ b/data/base/shaders/vk/terrain_combined_high.frag @@ -135,7 +135,7 @@ void main() vec4 volumetric = volumetricLights(clipSpaceCoord, cameraPos.xyz, frag.fragPos, diffuseLight.xyz); fragColor.xyz = toneMap(fragColor.xyz * volumetric.a + volumetric.xyz); } - if (fogEnabled > 0) + else if (fogEnabled > 0) { // Calculate linear fog float fogFactor = (fogEnd - frag.vertexDistance) / (fogEnd - fogStart);