diff --git a/lib/obj.js b/lib/obj.js index aa868f9..d8e11dc 100644 --- a/lib/obj.js +++ b/lib/obj.js @@ -105,6 +105,8 @@ function processObj(objFile, info, materials, images, done) { var ui = getOffset(u, uvs, 2); var ux = uvs[ui + 0]; var uy = uvs[ui + 1]; + // Flip y so 0.0 is the bottom of the image + uy = 1.0 - uy; vertexArray.push(ux, uy); } else { // Some objects in the model may not have uvs, fill with 0's for consistency