Back to index
Vertex ID
Exercises
Move the triangle by offsetting the
gl_Position
.
Without changing the vertices list, move the top vertex of the triangle using
gl_VertexID
.
Vertices
// x, y, z // x, y, z // x, y, z
Vertex shader
Fragment shader
Render window
Compile log
Compile