diff options
author | Chien Yang <[email protected]> | 2007-04-24 05:25:49 +0000 |
---|---|---|
committer | Chien Yang <[email protected]> | 2007-04-24 05:25:49 +0000 |
commit | afe73fe5a78a1ada8915b39e49281451b9348fcf (patch) | |
tree | 4e01e72f5153614ea6ff38d117a02e2578189162 | |
parent | cdf0d5d0cb795de2d1ae4b5ac0daf8580f94107f (diff) |
Fixed a bug in fix to 411.
git-svn-id: https://svn.java.net/svn/j3d-core-utils~svn/trunk@164 9497e636-51bd-65ba-982d-a4982e1767a5
-rw-r--r-- | src/classes/share/com/sun/j3d/utils/geometry/Quadrics.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/classes/share/com/sun/j3d/utils/geometry/Quadrics.java b/src/classes/share/com/sun/j3d/utils/geometry/Quadrics.java index 015e506..4159529 100644 --- a/src/classes/share/com/sun/j3d/utils/geometry/Quadrics.java +++ b/src/classes/share/com/sun/j3d/utils/geometry/Quadrics.java @@ -152,7 +152,7 @@ class Quadrics extends Object { // vert 2 gbuf.normal3d(px*sign, 0.0, pz*sign); if (texCoordYUp) { - gbuf.texCoord2d(s, 1.0 - t + dv); + gbuf.texCoord2d(s, 1.0 - (t + dv)); } else { gbuf.texCoord2d(s, t+dv); @@ -171,7 +171,7 @@ class Quadrics extends Object { // vert 4 gbuf.normal3d(qx*sign, 0.0, qz*sign); if (texCoordYUp) { - gbuf.texCoord2d(s+du, 1.0 - t + dv); + gbuf.texCoord2d(s+du, 1.0 - (t + dv)); } else { gbuf.texCoord2d(s+du, t+dv); @@ -197,7 +197,7 @@ class Quadrics extends Object { // vert 6 gbuf.normal3d(px*sign, 0.0, pz*sign); if (texCoordYUp) { - gbuf.texCoord2d(s, 1.0 - t + dv); + gbuf.texCoord2d(s, 1.0 - (t + dv)); } else { gbuf.texCoord2d(s, t+dv); @@ -226,7 +226,7 @@ class Quadrics extends Object { gbuf.normal3d(px*sign, 0.0, pz*sign); if (texCoordYUp) { - gbuf.texCoord2d(s, 1.0 - t + dv); + gbuf.texCoord2d(s, 1.0 - (t + dv)); } else { gbuf.texCoord2d(s, t+dv); @@ -245,7 +245,7 @@ class Quadrics extends Object { gbuf.normal3d(qx*sign, 0.0, qz*sign); if (texCoordYUp) { - gbuf.texCoord2d(s+du, 1.0 - t + dv); + gbuf.texCoord2d(s+du, 1.0 - (t + dv)); } else { gbuf.texCoord2d(s+du, t+dv); @@ -269,7 +269,7 @@ class Quadrics extends Object { gbuf.normal3d(px*sign, 0.0, pz*sign); if (texCoordYUp) { - gbuf.texCoord2d(s, 1.0 - t + dv); + gbuf.texCoord2d(s, 1.0 - (t + dv)); } else { gbuf.texCoord2d(s, t+dv); @@ -339,7 +339,7 @@ class Quadrics extends Object { // vert2 gbuf.normal3d(px*sign, ynormal*sign, pz*sign); if (texCoordYUp) { - gbuf.texCoord2d(s, 1.0 - t + dv); + gbuf.texCoord2d(s, 1.0 - (t + dv)); } else { gbuf.texCoord2d(s, t+dv); @@ -359,7 +359,7 @@ class Quadrics extends Object { // vert4 gbuf.normal3d(qx*sign, ynormal*sign, qz*sign); if (texCoordYUp) { - gbuf.texCoord2d(s+du, 1.0 - t + dv); + gbuf.texCoord2d(s+du, 1.0 - (t + dv)); } else { gbuf.texCoord2d(s+du, t+dv); @@ -385,7 +385,7 @@ class Quadrics extends Object { // vert 6 gbuf.normal3d(px*sign, ynormal*sign, pz*sign); if (texCoordYUp) { - gbuf.texCoord2d(s, 1.0 - t + dv); + gbuf.texCoord2d(s, 1.0 - (t + dv)); } else { gbuf.texCoord2d(s, t+dv); } @@ -412,7 +412,7 @@ class Quadrics extends Object { // vert1 gbuf.normal3d(px*sign, ynormal*sign, pz*sign); if (texCoordYUp) { - gbuf.texCoord2d(s, 1.0 - t + dv); + gbuf.texCoord2d(s, 1.0 - (t + dv)); } else { gbuf.texCoord2d(s, t+dv); @@ -430,7 +430,7 @@ class Quadrics extends Object { gbuf.normal3d(qx*sign, ynormal*sign, qz*sign); if (texCoordYUp) { - gbuf.texCoord2d(s+du, 1.0 - t + dv); + gbuf.texCoord2d(s+du, 1.0 - (t + dv)); } else { gbuf.texCoord2d(s+du, t+dv); @@ -454,7 +454,7 @@ class Quadrics extends Object { gbuf.normal3d(px*sign, ynormal*sign, pz*sign); if (texCoordYUp) { - gbuf.texCoord2d(s, 1.0 - t + dv); + gbuf.texCoord2d(s, 1.0 - (t + dv)); } else { gbuf.texCoord2d(s, t+dv); |