Implement arcs with variable width and color

This commit is contained in:
2023-01-11 00:00:02 +00:00
parent 44f767841a
commit 471c6fec7e
11 changed files with 116 additions and 44 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ layout (location=1) out vec4 fPos;
void main()
{
float d = (dot(vec2(vparams.xy),vec2(vparams.xy)));
if ( d > 1 || d < vparams.z ) {discard;}
if ( d > 1 || d < (vparams.z * vparams.z) ) {discard;}
fCol = vCol;
fPos = vec4(vPos,1);
}