This function adds 3D position data to the vertex currently being defined for the custom primitive.
You supply the vertex buffer to write the data into as well as the x, y and z components of the vertex position.
vertex_position_3d(buffer, x, y, z);
Argument | Type | Description |
---|---|---|
buffer | Vertex Buffer | The vertex buffer to write the information to. |
x | Real | The x position. |
y | Real | The y position. |
z | Real | The z position. |
N/A
vertex_position_3d(buff, x - 100, y - 125, 0);
The above code sets the position of the vertex being defined.