The outer and inner tessellation levels will be determined by the Inner and Outer uniform variables. In order to display the triangles, we will use the geometry shader.
Set up your OpenGL application to render a patch primitive consisting of four vertices in counterclockwise order, as shown in the previous figure.