diff --git a/src/mesh/Mesh.js b/src/mesh/Mesh.js index b8738ed..4c53570 100644 --- a/src/mesh/Mesh.js +++ b/src/mesh/Mesh.js @@ -30,9 +30,9 @@ * * @member {Float32Array} */ - this.uvs = uvs || new Float32Array([0, 1, - 1, 1, + this.uvs = uvs || new Float32Array([0, 0, 1, 0, + 1, 1, 0, 1]); /** @@ -49,7 +49,7 @@ * @member {Uint16Array} An array containing the indices of the vertices */ // TODO auto generate this based on draw mode! - this.indices = indices || new Uint16Array([0, 1, 2, 3]); + this.indices = indices || new Uint16Array([0, 1, 3, 2]); /** * Whether the Mesh is dirty or not