diff options
author | Sven Gothel <[email protected]> | 2012-11-12 07:13:45 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-11-12 07:13:45 +0100 |
commit | 92406ae9a2153c1b6a74c29d9939a021d898dcf1 (patch) | |
tree | 4b4e55169333f15ed7d2f548510cd39ebb0a729e /src/jogl/classes/com/jogamp/opengl/util/PMVMatrix.java | |
parent | 3859f4577524bd3302631272579183adbc92f5c2 (diff) |
Frustum: Cleanup / update; PMVMatrix: Fix mulPMV
Frustum: Cleanup / update
- Remove ctor w/ PMV, use update(..) instead - avoid API explosion
- Add update(Plane[]) to copy existing Frustum planes
- Mention world-coordinates in update(PMV)
PMVMatrix: Fix mulPMV
- P*Mv in column major order is correct for Frustum
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/util/PMVMatrix.java')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/PMVMatrix.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/PMVMatrix.java b/src/jogl/classes/com/jogamp/opengl/util/PMVMatrix.java index 19d877bab..18129ba09 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/PMVMatrix.java +++ b/src/jogl/classes/com/jogamp/opengl/util/PMVMatrix.java @@ -1042,7 +1042,7 @@ public class PMVMatrix implements GLMatrixFunc { frustum = new Frustum(); mulPMV = new float[16]; } - FloatUtil.multMatrixf(matrixMv, matrixP, mulPMV, 0); + FloatUtil.multMatrixf(matrixP, matrixMv, mulPMV, 0); frustum.update(mulPMV, 0); dirtyBits &= ~DIRTY_FRUSTUM; mod = true; |