Modify a texture coordinate of an On-The-Fly object
| <node3d:onthefly>.setTexCoord( | |
| index | |
| [x,y,z] | |
| unit = 0 | # keyword argument |
)
index
0-based index of the vertex. Negative index can also be used to reference from end of vertex list.
[x,y,z]
The new texture coordinate of the vertex. The z component is optional and only used for 3D textures.
unit = 0
The texture unit
This command allows you to modify the texture coordinate 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 texture coordinate 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>.setVertex
<node3d:onthefly>.setVertexColor