Added setUVs method

This commit is contained in:
Richard Davey 2020-10-09 16:22:27 +01:00
parent acfb6c469f
commit 2801d3d804

View file

@ -167,6 +167,25 @@ var Vertex = new Class({
this.ta = 0; 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`. * Transforms this vertex by the given matrix, storing the results in `vx`, `vy` and `vz`.
* *