Some more exploration with the fragment shader: All with the exact same code but with different shaders.
Archive for March, 2011
An exploration with the fragment shader: The color is simply calculated based on the normals yet the result creates a very surreal impression.
I was wondering how to debug GLSL shaders as Xcode doesn’t report any errors or warnings but just to fails to run them, and I finally found the answer: OpenGL Shader Builder.
OpenGL Shader Builder is found in Developer/Applications/Graphic Tools along with some other openGL related tools.
Using this tool, shaders are immediately compiled as they are typed and the preview is updated in realtime. Detailed error reports are also available. This is exactly what I wanted. I’ll delve into the world of shaders from now on.