The following are the important uniform variables for this example:
- NumSegments: This is the number of line segments to be produced.
- NumStrips: This is the number of isolines to be produced. For this example, this should be set to 1.
- LineColor: This is the color for the resulting line strip.
Set the uniform variables within the main OpenGL application. There are a total of four shaders to be compiled and linked. They are the vertex, fragment, tessellation control, and tessellation evaluation shaders.