I’m using ofxDelaunay for a project and i’ve ran into an issue trying to draw the triangles with a solid colour. Currently, the triangles are drawn with a gradient fill as seen below:
I’ve read that it may be down to sharing vertices - Did anybody have any ideas on how to solve this? Some small code examples would help massively!
Thank you ever so much!
If you are still using the Fixed function renderer (not GL Programmable Renderer) you can simply set glShadeModel(GL_FLAT) before drawing.
If you are using programmable renderer, you’ll need to write a simple shader that passes the vertex colors along with flat interpolation qualifiers
Hope this helps!
Thank you so much, this has solved it straight away!
I am curious how you define the points and colors for the points to triangulate.