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);