Return alpha value in tonemap.

This commit is contained in:
vlj 2014-05-25 03:13:19 +02:00
parent 8afc03deff
commit 670c25dd26

View File

@ -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);
}