[vulkan] Implement gamma correction

Currently hard-coded to 0.67 (1/1.5), but it does the job for now.
This commit is contained in:
Bill Currie 2021-03-20 16:49:12 +09:00
parent bab3e0720f
commit dccd6989b2
1 changed files with 1 additions and 0 deletions

View File

@ -15,5 +15,6 @@ main (void)
o = subpassLoad (opaque).rgb;
t = subpassLoad (translucent);
c = mix (o, t.rgb, t.a);
c = pow (c, vec3(0.67));//FIXME make gamma correction configurable
frag_color = vec4 (c, 1);
}