Modify a vertex color of an On-The-Fly object
| <node3d:onthefly>.setVertexColor( | |
| index | |
| [r,g,b,a] |
)
index
0-based index of the vertex. Negative index can also be used to reference from end of vertex list.
[r,g,b,a]
The new color of the vertex
This command allows you to modify the color of a specific vertex in the On-The-Fly object. The index is a number that can start from 0 and go up to, but not including, the number of vertices in the object.
NOTE: If you are frequently changing the color of a vertex, then use the <node3d:onthefly>.dynamic command to speed up rendering.
None
<node3d:onthefly>.dynamic
<node3d:onthefly>.static
<node3d:onthefly>.setNormal
<node3d:onthefly>.setTexCoord
<node3d:onthefly>.setVertex