We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acfb6c4 commit 2801d3dCopy full SHA for 2801d3d
1 file changed
src/geom/mesh/Vertex.js
@@ -167,6 +167,25 @@ var Vertex = new Class({
167
this.ta = 0;
168
},
169
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
189
/**
190
* Transforms this vertex by the given matrix, storing the results in `vx`, `vy` and `vz`.
191
*
0 commit comments