2021-02-24 10:58:31 +00:00
|
|
|
#version 450
|
2022-12-01 14:03:55 +00:00
|
|
|
#extension GL_GOOGLE_include_directive : enable
|
|
|
|
#define OIT_SET 1
|
|
|
|
#include "oit_blend.finc"
|
2021-02-24 10:58:31 +00:00
|
|
|
|
|
|
|
layout (input_attachment_index = 0, set = 0, binding = 0) uniform subpassInput opaque;
|
|
|
|
|
|
|
|
layout (location = 0) out vec4 frag_color;
|
|
|
|
|
|
|
|
void
|
|
|
|
main (void)
|
|
|
|
{
|
|
|
|
vec3 o;
|
|
|
|
vec3 c;
|
|
|
|
|
|
|
|
o = subpassLoad (opaque).rgb;
|
2022-12-01 14:03:55 +00:00
|
|
|
c = BlendFrags (vec4 (o, 1)).xyz;
|
2021-03-20 10:15:06 +00:00
|
|
|
c = pow (c, vec3(0.83));//FIXME make gamma correction configurable
|
2021-02-24 10:58:31 +00:00
|
|
|
frag_color = vec4 (c, 1);
|
|
|
|
}
|