This function adds four unsigned byte values (0 - 255) to the vertex data.
The vertex buffer must have been formatted correctly to accept this using the vertex_format_add_custom function.
vertex_ubyte4(buffer, byte, byte, byte, byte);
Argument | Type | Description |
---|---|---|
buffer | Vertex Buffer | The vertex buffer to write the information to. |
byte | Real | The first input value. |
byte | Real | The second input value. |
byte | Real | The third input value. |
byte | Real | The fourth input value. |
N/A
vertex_ubyte4(buff, irandom(255), irandom(255), irandom(255), 127);
The above code adds four values to the vertex data being defined.