In other words, emulating the old opengl flat shading model, so you could for example have a line strip where each segment is a distinct color rather than an interpolation of color across the segment?
+1
A:
Not directly. GLSL for Desktop has the flat keyword, but GLSL ES doesn't have it (it's reserved). A trick to emulate this behaviour is to assign the same color at each vertex in a triangle (or in a segment), so the interpolation is between the same value.
Matias Valdenegro
2010-08-04 20:47:31
right, but then you can't use strips...better than nothing though
RobbieC
2010-08-05 16:22:43