mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
[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:
parent
bab3e0720f
commit
dccd6989b2
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue