Many people recently asked me how to use GLSL within of. Actually I think there are allready a few threads that also helped me out on that topic but anyways I though it would be a good idea to post a simple example.
This basically uses the ofShader addon posted in the forums, I only changed and added a few things. Unfortunatelly I don’t know who the original made so if it was you, post it!
The example is really simple. It only uses one shader to color each fragment with it’s per pixel normal. The next step would be to use Frame Buffer Objects to make use of Multiple Render Targets and other cool features of OpenGL. I would recommend to everybody of you to write those classes on your own for two reasons:
It makes alot of sense to understand what you are actually doing if you want to go beyond the basics.
You can’t really put all FBO functionality into one class without making things complicated (at least I can not). That is so because for example shadow FBOs need a completely different setup than normal color buffers do.
To get started you will find some simple FBO examples on google and the of Forum,
no more talking, here is the code:
Hope that helps!