We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm slowing learning how to use PShader and I'm trying to figure out all of the GLSL uniforms that are automatically set by Processing like modelview
, lightPosition
, normalMatrix
, et cetera. Is this information listed somewhere, or do I need to dig through the source code? I've already looked at Andres Colubri's PShader tutorial and the Advanced OpenGL wiki page, and am relying heavily on the shader examples in Processing itself, but I haven't found a comprehensive list yet.
Answers
They seem to be here: https://github.com/processing/processing/blob/master/core/src/processing/opengl/PShader.java#L1136
And here you can find the default shaders: https://github.com/processing/processing/tree/master/core/src/processing/opengl/shaders