Skip to content

Commit

Permalink
Update vk/terrain_combined_high.frag to match GL shader
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Mar 3, 2024
1 parent 1e365fe commit 0907fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/base/shaders/vk/terrain_combined_high.frag
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0907fd0

Please sign in to comment.