Varyings

Varyings are used to pass data from the vertex shader to the fragment shader. Depending on what is being rendered  points, lines, or triangles  the values set on a varying by a vertex shader will be interpolated while executing the fragment shader.

Now, let's cover the principles of creating a simple geometric object.