We can also set “uniform” values. They are global to the
draw call and can be read by both vertex and fragment shaders. In this
example we supply a uniform variable color
and perform two draw
calls to draw circles in two different colors.
<< [Sharing Vertices] [Index] [Per-Pixel Attributes] >>