mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 04:33:31 +00:00
Added setUVs method
This commit is contained in:
parent
acfb6c469f
commit
2801d3d804
1 changed files with 19 additions and 0 deletions
|
@ -167,6 +167,25 @@ var Vertex = new Class({
|
|||
this.ta = 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* Sets the U and V properties.
|
||||
*
|
||||
* @method Phaser.Geom.Mesh.Vertex#setUVs
|
||||
* @since 3.50.0
|
||||
*
|
||||
* @param {number} u - The UV u coordinate of the vertex.
|
||||
* @param {number} v - The UV v coordinate of the vertex.
|
||||
*
|
||||
* @return {this} This Vertex.
|
||||
*/
|
||||
setUVs: function (u, v)
|
||||
{
|
||||
this.u = u;
|
||||
this.v = v;
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
/**
|
||||
* Transforms this vertex by the given matrix, storing the results in `vx`, `vy` and `vz`.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue