Portion circle animation


#1

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


#2

Glsl fragment solution :

image

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


#3

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