Skip to content

Commit

Permalink
Back facing texture filipped horizontally.
Browse files Browse the repository at this point in the history
  • Loading branch information
harism committed Jun 6, 2012
1 parent 2d61909 commit 7a2c8f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fi/harism/curl/CurlMesh.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 7a2c8f1

Please sign in to comment.