Hey folks!
The goal is to generate a 2D polygon programmatically and apply a texture to it. I’ll also need to save vertices’ coordinates so that I could draw the same shape in the next game session.
As I get, there is no drawing API in Defold, so that I decided to dive into GLSL and solve the problem using shaders but can’t find any reference of how I could pass vertices into shader from the script. Any ideas?
Thanks!