Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

ofxDelaunay solid colour triangles

$
0
0

Hi James!

If you are still using the Fixed function renderer (not GL Programmable Renderer) you can simply set glShadeModel(GL_FLAT) before drawing.

https://www.opengl.org/discussion_boards/showthread.php/169700-GL_FLAT-GL_SMOOTH-switching-front-and-back-issue

If you are using programmable renderer, you'll need to write a simple shader that passes the vertex colors along with flat interpolation qualifiers

http://www.geeks3d.com/20130514/opengl-interpolation-qualifiers-glsl-tutorial/

Hope this helps!


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>