From 670c25dd2605d87cc5dcdfe1d1ed2c169f553a25 Mon Sep 17 00:00:00 2001 From: vlj Date: Sun, 25 May 2014 03:13:19 +0200 Subject: [PATCH] Return alpha value in tonemap. --- data/shaders/tonemap.frag | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/data/shaders/tonemap.frag b/data/shaders/tonemap.frag index 4b8077317..0f605227a 100644 --- a/data/shaders/tonemap.frag +++ b/data/shaders/tonemap.frag @@ -33,6 +33,5 @@ void main() // Uncharted2 tonemap with Auria's custom coefficients vec4 perChannel = (col * (6.9 * col + .5)) / (col * (5.2 * col + 1.7) + 0.06); perChannel = pow(perChannel, vec4(2.2)); - FragColor = vec4(perChannel.xyz, 1.); - + FragColor = vec4(perChannel.xyz, col.a); }