This function adds normal 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 normal.
vertex_normal(buffer, nx, ny, nz);
Argument | Type | Description |
---|---|---|
buffer | Vertex Buffer | The vertex buffer to write the information to. |
nx | Real | The x component of the normal. |
ny | Real | The y component of the normal. |
nz | Real | The z component of the normal. |
N/A
vertex_normal(buff, 0, 1, 1);
The above code will set the surface normal of the vertex being defined.