paroj / gltut

Learning Modern 3D Graphics Programming
https://paroj.github.io/gltut/
MIT License
1.57k stars 377 forks source link

Debug the tutorial's vertex/fragment shaders #17

Open paroj opened 13 years ago

paroj commented 13 years ago

Originally reported by: Anonymous


I would love to see an appendix with a walkthrough on how to debug one of the tutorial's vertex/fragment shaders using a tool such as glslDevil or gDEBugger.

It would be enormously useful to be able to see the exact effect the perspective and model2camera transformations have on the matrices in a debugger and to also visualize fragment shader operations.

I've tried myself without success to debug several different Tutorial executables using both tools, I'm perhaps making a few assumptions that aren't true such as that they fully support the opengl 3.3 core profile and are aware of freeglut etc.

Peter


paroj commented 13 years ago

Original comment by Jason McKesson (Bitbucket: alfonse, GitHub: alfonse):


I should do an appendix on debugging OpenGL, particularly shaders. But I'm not sure how good gDEBugger is with core OpenGL 3.3 and above, so I'm not sure about using it.