diff --git a/src/fi/harism/curl/CurlMesh.java b/src/fi/harism/curl/CurlMesh.java index b2886b2..e1a31e8 100644 --- a/src/fi/harism/curl/CurlMesh.java +++ b/src/fi/harism/curl/CurlMesh.java @@ -463,7 +463,7 @@ else if (i == mArrScanLines.size() - 1 || curlLength == 0) { v.mTexY *= mTextureRectFront.bottom; v.mColor = mTexturePage.getColor(CurlPage.SIDE_FRONT); } else { - v.mTexX = (1f - v.mTexX) * mTextureRectBack.right; + v.mTexX *= mTextureRectBack.right; v.mTexY *= mTextureRectBack.bottom; v.mColor = mTexturePage.getColor(CurlPage.SIDE_BACK); } @@ -768,7 +768,7 @@ public synchronized void reset() { tmp.set(mRectangle[i]); if (mFlipTexture) { - tmp.mTexX = (1f - tmp.mTexX) * mTextureRectBack.right; + tmp.mTexX *= mTextureRectBack.right; tmp.mTexY *= mTextureRectBack.bottom; tmp.mColor = mTexturePage.getColor(CurlPage.SIDE_BACK); } else {