I've spent days now trying to create a simple 2d stellated polygon (star shape) with jit.gl.mesh. I want to be able to independently control/animate vertices of a star shape. I've been using jit.spill to output and modify the matrix data of a circle with 8 sides (dim 9 9) from jit.gl.gridshape. Probing one cell at a time, I just can't make sense of it.
I've attached a drawing of what I'm trying to acheive. Any help would be greatly appreciated.
I really need it to be one complete shape. Adding triangles in this way will be too difficult to manage. I need to be able to present a number of these stars with varying numbers of points – each dynamically controlled/animated. If I can just isolate the vector points on a mesh to pull in and out (move x,y) I’m golden.