Return alpha value in tonemap.
This commit is contained in:
parent
8afc03deff
commit
670c25dd26
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user