From 44f70454ad310a98d8fd47e62dc8ce4b5dbe95d9 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Fri, 30 May 2014 02:32:01 +0200 Subject: [PATCH] Fix dof overwriting alpha value. --- data/shaders/dof.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/shaders/dof.frag b/data/shaders/dof.frag index 63bdc6f67..1ac9712cf 100644 --- a/data/shaders/dof.frag +++ b/data/shaders/dof.frag @@ -82,5 +82,5 @@ void main() depth = (1 - depth); vec3 final = colOriginal.rgb * depth + col.rgb * (1 - depth); - FragColor = vec4(final, 1.); + FragColor = vec4(final, colOriginal.a); }