Implement arcs with variable width and color
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user