diff --git a/data/shaders/bloom.frag b/data/shaders/bloom.frag index bc63c195c..782ea05c6 100644 --- a/data/shaders/bloom.frag +++ b/data/shaders/bloom.frag @@ -12,5 +12,5 @@ void main() float luma = getCIEYxy(col).x; col *= smoothstep(1., 10., luma); - FragColor = vec4(col, 1.0); + FragColor = max(vec4(col, 1.0), vec4(0.)); } diff --git a/data/shaders/bloomblend.frag b/data/shaders/bloomblend.frag index 503c9dcb9..81f279f4c 100644 --- a/data/shaders/bloomblend.frag +++ b/data/shaders/bloomblend.frag @@ -10,5 +10,5 @@ void main() vec4 col = .125 * texture(tex_128, uv); col += .25 * texture(tex_256, uv); col += .5 * texture(tex_512, uv); - FragColor = vec4(col.xyz, 1.); + FragColor = max(vec4(col.xyz, 1.), vec4(0.)); }