Forums > Jitter

(semi-OT) jitter glsl examples

May 29, 2010 | 1:56 am

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 | 5:08 am

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.



efe
May 29, 2010 | 5:23 am

Hello Joshua:
yeah, there seems to be some issues with the use of sampler2DRect vs sampler2D inside jitter:
http://cycling74.com/forums/topic.php?id=20376

http://cycling74.com/forums/topic.php?id=22723

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


Viewing 3 posts - 1 through 3 (of 3 total)