diff options
author | phil <[email protected]> | 2016-10-16 22:12:48 +1300 |
---|---|---|
committer | phil <[email protected]> | 2016-10-16 22:12:48 +1300 |
commit | 6d5ae1db4cdf2f4b714d3739e35c67d5160f4c56 (patch) | |
tree | 41958ce146e423eaae8da84a0e529891186349dd | |
parent | eff6292d4714317ff6b5764e44221132982d40d0 (diff) |
normalMatrix calculation was using cached values for VM that may not
have been up to date view and model matrixs now used
-rw-r--r-- | src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java b/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java index 65ed685..718fc22 100644 --- a/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java +++ b/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java @@ -1917,7 +1917,7 @@ class Jogl2es2Pipeline extends Jogl2es2DEPPipeline //if (!MINIMISE_NATIVE_CALLS_FFP // || (shaderProgramId != ctx.prevShaderProgram || !ctx.gl_state.glNormalMatrix.equals(ctx.currentNormalMat))) //{ - ctx.currentModelViewMat.mul(ctx.matrixUtil.deburnV, ctx.matrixUtil.deburnM); + ctx.currentModelViewMat.mul(ctx.currentViewMat, ctx.currentModelMat); Jogl2es2MatrixUtil.transposeInvert(ctx.currentModelViewMat, ctx.currentNormalMat); //gl.glUniformMatrix3fv(locs.glNormalMatrix, 1, false, ctx.toFB(ctx.currentNormalMat)); |