Triangle Strip - Per Triangle color

In the old OpenGL(glBegin, glEnd), when you draw a triangle strip, there was no way to set the color per-triangle. Only per-vertex. Is this the same with shaders? I would need to draw the heightmap from trianle strips but I need different colors for each triangle, ....so the edges between them are visible. Thanks!

In particular, see section "13.4 Flat Shading". You can set which vertex in the primitive defines the color and other values for the whole primitive. In your GLSL shader, you mark the interpolator in your shader with the interpolation qualifier "flat" to signify that you don't want it smoothly blended across the surface of the primitive, but left fixed. See the GLSL spec for details (in particular, Section 4.5 Interpolation Qualifiers):