Re: Translating a rotated model.
Posted by
Sven Gothel on
Sep 30, 2014; 11:11pm
URL: https://forum.jogamp.org/Translating-a-rotated-model-tp4033250p4033264.html
On 09/30/2014 11:02 PM, gouessej [via jogamp] wrote:
> There are a few unit tests that use PMVMatrix, including this one:
>
https://github.com/sgothel/jogl/blob/master/src/test/com/jogamp/opengl/test/junit/jogl/glsl/TestGLSLShaderState01NEWT.java> I tried to use it once but I forgot something and it didn't work. It's
> probably my fault. Sven knows better than me how to use this feature.
PMVMatrix is just a little convenient helper
bringing you some fixed function math back.
You need to push the PMVMatrix data to your shader uniform ofc
and use it accordingly.
See RedSquareES2 and all the other unit tests for example.
~Sven