mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-11 05:11:16 +00:00
30b38d7f3f
They sort of kind of maybe try to work, but there's plenty wrong. I suspect synchronization and probably other factors.
20 lines
320 B
GLSL
20 lines
320 B
GLSL
#version 450
|
|
|
|
layout (location = 0) in vec4 uv_tr;
|
|
layout (location = 1) in vec4 color;
|
|
|
|
layout (location = 0) out vec4 frag_color;
|
|
|
|
void
|
|
main (void)
|
|
{
|
|
vec4 c = vec4 (1,1,1,1);//color;
|
|
vec2 x = uv_tr.xy;
|
|
|
|
float a = 1 - dot (x, x);
|
|
if (a <= 0) {
|
|
discard;
|
|
}
|
|
c.a *= sqrt (a);
|
|
frag_color = c;
|
|
}
|