summaryrefslogtreecommitdiffstats
path: root/src/extras/shaders/scale.frag
diff options
context:
space:
mode:
Diffstat (limited to 'src/extras/shaders/scale.frag')
-rw-r--r--src/extras/shaders/scale.frag1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/extras/shaders/scale.frag b/src/extras/shaders/scale.frag
index 29165154..7d9d1ff4 100644
--- a/src/extras/shaders/scale.frag
+++ b/src/extras/shaders/scale.frag
@@ -10,6 +10,7 @@ main(void)
{
vec4 color;
color = v_color*texture(tex0, vec2(v_tex0.x, 1.0-v_tex0.y))*u_colorscale;
+ color.rgb = clamp(color.rgb, 0.0, 1.0);
color.rgb = mix(u_fogColor.rgb, color.rgb, v_fog);
DoAlphaTest(color.a);