(semi-OT) jitter glsl examples

May 29, 2010 at 1:56am

(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.

May 29, 2010 at 5:08am

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.

May 29, 2010 at 5:23am

Hello Joshua:
yeah, there seems to be some issues with the use of sampler2DRect vs sampler2D inside jitter:


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)



You must be logged in to reply to this topic.