From 7a2c8f152bb4f1b0de3b1aa72b3cb79e1fe8e3bd Mon Sep 17 00:00:00 2001 From: harism Date: Wed, 6 Jun 2012 10:16:29 +0300 Subject: [PATCH] Back facing texture filipped horizontally. --- src/fi/harism/curl/CurlMesh.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {