Skip to content

Commit

Permalink
[fog.f.glsl] Fixed water transparency.
Browse files Browse the repository at this point in the history
  • Loading branch information
Unarelith committed Jan 24, 2020
1 parent e4f760f commit 2ea6691
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions resources/shaders/fog.f.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
vec4 fog(vec4 color, float fogCoord, float fogStart, float fogEnd) {
float fog = clamp((fogEnd - fogCoord) / (fogEnd - fogStart), 0.0, 1.0);

// Fixes blue shades on trees
if (color.a < 1.0) color.a = 1.0;

return mix(vec4(0.196078, 0.6, 0.8, 1.0), color, fog);
}

0 comments on commit 2ea6691

Please sign in to comment.