Portion circle animation

Hello :slight_smile:

Hello I just want to animate portion of circle.

image image

It’s easy to compute points but what’s the best practice between :
Vbo, gl::VertBatch, glsl fragment, glsl vertex ?

Thanks

Glsl fragment solution :

image

https://www.shadertoy.com/view/XtXyDn

1 Like

Here’s an Arc shader (thickness, smoothing, start/end angles) in Cinder if you’re interested: https://github.com/bluecadet/Cinder-BluecadetViews/blob/develop/src/bluecadet/views/ArcView.cpp