vertex_list

A vertex list hold a sequence of floating point data that can serve as the input of the vertex shader of a model or particle system. Each vertex list has a given vertex type, a GLSL basic type (float, vec2, vec3, vec4), or a simple GLSL structure (containing only the basic types). The syntax is:

vertex_list <vertex type> <name> = { <vertex 0 data>, <vertex 1 data>, ... };

The data for each vertex can be floating point values or vectors and will be automatically divided into vertices based on the size of the vertex type.

Example:

glsl struct TexturedVertex {
    vec3 coord;
    vec2 texCoord;
};

vertex_list TexturedVertex oneTriangle = {
    x0, y0, z0, u0, v0,
    x1, y1, z1, u1, v1,
    x2, y2, z2, u2, v2
};