Skip to content

Commit 2801d3d

Browse files
committed
Added setUVs method
1 parent acfb6c4 commit 2801d3d

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

src/geom/mesh/Vertex.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,25 @@ var Vertex = new Class({
167167
this.ta = 0;
168168
},
169169

170+
/**
171+
* Sets the U and V properties.
172+
*
173+
* @method Phaser.Geom.Mesh.Vertex#setUVs
174+
* @since 3.50.0
175+
*
176+
* @param {number} u - The UV u coordinate of the vertex.
177+
* @param {number} v - The UV v coordinate of the vertex.
178+
*
179+
* @return {this} This Vertex.
180+
*/
181+
setUVs: function (u, v)
182+
{
183+
this.u = u;
184+
this.v = v;
185+
186+
return this;
187+
},
188+
170189
/**
171190
* Transforms this vertex by the given matrix, storing the results in `vx`, `vy` and `vz`.
172191
*

0 commit comments

Comments
 (0)