From 9de7d11ee4f1641cdd750ec2d1691cf38e3e2b67 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Tue, 7 Oct 2014 00:00:16 +0200 Subject: [PATCH] Fix bloom effect on mesa --- data/shaders/bloom.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/shaders/bloom.frag b/data/shaders/bloom.frag index 8861a29db..099922bab 100644 --- a/data/shaders/bloom.frag +++ b/data/shaders/bloom.frag @@ -14,5 +14,5 @@ void main() Yxy.x = smoothstep(WhiteYxy.x, WhiteYxy.x * 4, Yxy.x); - FragColor = vec4(getRGBFromCIEXxy(Yxy), 1.0); + FragColor = vec4(max(vec3(0.), getRGBFromCIEXxy(Yxy)), 1.0); }