Skip to content
Kay Steinhoff edited this page Oct 7, 2024 · 1 revision

vertex

typedef struct
{
    vec3 position;
    vec2 uv;
}vertex;

Explanation

A simple vertex. Each vertex holds the position and uv coordinates of this vertex of the current triangle. Verticies are used similarly to verticies in OpenGL with the distinction that you lack the freedom of sorting the values in any order.

Clone this wiki locally