2021-12-16 14:17:01 +00:00
|
|
|
#version 450
|
2022-11-30 18:00:47 +00:00
|
|
|
#extension GL_GOOGLE_include_directive : enable
|
|
|
|
#include "oit_store.finc"
|
2021-12-16 14:17:01 +00:00
|
|
|
|
|
|
|
layout (location = 0) in vec4 uv_tr;
|
|
|
|
layout (location = 1) in vec4 color;
|
|
|
|
|
2022-11-30 18:00:47 +00:00
|
|
|
layout(early_fragment_tests) in;
|
2021-12-16 14:17:01 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
main (void)
|
|
|
|
{
|
2022-11-28 13:57:22 +00:00
|
|
|
vec4 c = color;
|
2021-12-16 14:17:01 +00:00
|
|
|
vec2 x = uv_tr.xy;
|
|
|
|
|
|
|
|
float a = 1 - dot (x, x);
|
|
|
|
if (a <= 0) {
|
|
|
|
discard;
|
|
|
|
}
|
2022-11-28 13:57:22 +00:00
|
|
|
c *= (a);
|
2022-11-30 18:00:47 +00:00
|
|
|
StoreFrag (c, gl_FragCoord.z);
|
2021-12-16 14:17:01 +00:00
|
|
|
}
|