(semi-OT) jitter glsl examples
I realize this is semi-OT, but figured I'd throw it out there and see if anyone could steer me right.
In the interest of learning more about glsl I thought I'd give throwing some of the jitter glsl examples into the OpenGL Shader Builder on OSX but all of them are non-functional. Is there something unique about the way that jitter passes the shaders to GPU? I know the basics of glsl and I don't see anything that seems too weird in the vert and frag files, but I can't get them to work outside of jitter.
Answered this myself. I just changed sampler2DRect to sampler2D and texture2DRect to texture2D and that seems to work in both Shader Builder and in Processing.
Hello Joshua:
yeah, there seems to be some issues with the use of sampler2DRect vs sampler2D inside jitter:
https://cycling74.com/forums/declare-sampler2d
https://cycling74.com/forums/can-the-jxs-wrapper-use-sample2dshadow
I guess the best way to go is to use sampler2DRect when possible and play with the tex_map values in order to achieve specific effects(like reflection mappings, etc)
Emmanuel