From 92406ae9a2153c1b6a74c29d9939a021d898dcf1 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 12 Nov 2012 07:13:45 +0100 Subject: 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 --- src/jogl/classes/com/jogamp/opengl/util/PMVMatrix.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/jogl/classes/com/jogamp/opengl/util/PMVMatrix.java') 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; -- cgit v1.2.3