Processing automatically sends all the required matrices to the shaders, provided that they define the appropriate uniform variables. See how it is done in the Demos|Graphics|LowLevelGL example. This example assumes no fixed-function pipeline, so the GL matrix-related functions (glMatrixMode, glLoadMatrix, etc) are not used at all.
↧