From 96413801716b4db8d2bd3dd21707019306acc48b Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Thu, 19 Feb 2015 00:44:21 +0100 Subject: [PATCH] Fix billboard transparency --- data/shaders/billboard.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/shaders/billboard.frag b/data/shaders/billboard.frag index 16b3f742b..7b7af00a8 100644 --- a/data/shaders/billboard.frag +++ b/data/shaders/billboard.frag @@ -6,5 +6,5 @@ out vec4 FragColor; void main(void) { vec4 color = texture(tex, uv); - FragColor = vec4(color.rgb, color.a); + FragColor = vec4(color.a * color.rgb, color.a); }