bState =  mesh .triangle .texture .position .set  (  MeshObjectID ,  PolygonIndex ,  Ua ,  Va ,  Ub ,  Vb ,  Uc ,  Vc  )  
                                                                             
Description :

This instruction sets the texture coordinates for a vertex composing a particular triangle in a mesh.

Parameters :

  • ObjectID of the Mesh.
  • Index of the triangle. Valid in the range [0, NumberOfMeshTriangles - 1]
  • X component of the texture position for the first vertex of the triangle.
  • Y component of the texture position for the first vertex of the triangle.
  • X component of the texture position for the second vertex of the triangle.
  • Y component of the texture position for the second vertex of the triangle.
  • X component of the texture position for the third vertex of the triangle.
  • Y component of the texture position for the third vertex of the triangle.

Return Value :

  • Boolean value, TRUE if the instruction is executed with no error, FALSE otherwise.

Notes :


This instruction can be used on all meshes managed by Alambik.

Tiled coordinates are authorized as long as the texture assigned to the triangle has width and height values in a power of two.

Examples :