diff options
author | Sven Gothel <[email protected]> | 2013-09-10 23:07:31 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-09-10 23:07:31 +0200 |
commit | d2be196ba129ff5b690189a95ba21137523c3352 (patch) | |
tree | d276f14e25d5139f685dea87a1c8faffe0cdc979 /src/test/com/jogamp/opengl | |
parent | 597ca0edc8ba536e82494b56bd1bbd6f8290efa6 (diff) |
Gears*: Clarify frustum calculation for tiling
Diffstat (limited to 'src/test/com/jogamp/opengl')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/GearsES2.java | 4 | ||||
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/Gears.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/GearsES2.java b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/GearsES2.java index 2e98514a6..d8e0347d8 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/GearsES2.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/GearsES2.java @@ -287,9 +287,9 @@ public class GearsES2 implements GLEventListener, TileRendererBase.TileRendererN final float w = right - left; final float h = top - bottom; final float l = left + tileX * w / imageWidth; - final float r = l + w * tileWidth / imageWidth; + final float r = l + tileWidth * w / imageWidth; final float b = bottom + tileY * h / imageHeight; - final float t = b + h * tileHeight / imageHeight; + final float t = b + tileHeight * h / imageHeight; final float _w = r - l; final float _h = t - b; diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/Gears.java b/src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/Gears.java index 04f552e34..80e145c67 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/Gears.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/Gears.java @@ -203,9 +203,9 @@ public class Gears implements GLEventListener, TileRendererBase.TileRendererNoti final float w = right - left; final float h = top - bottom; final float l = left + tileX * w / imageWidth; - final float r = l + w * tileWidth / imageWidth; + final float r = l + tileWidth * w / imageWidth; final float b = bottom + tileY * h / imageHeight; - final float t = b + h * tileHeight / imageHeight; + final float t = b + tileHeight * h / imageHeight; final float _w = r - l; final float _h = t - b; |