I was working with OpenGL Shader Designer, a cool little program that lets you see how your shaders would look in realtime without having to write all the base code (viewports, rotation controls, etc.). It just lets you put some textures in there and loads up one of a couple of default meshes for you to work with. Super cool idea! Not so great in practice.
I continually ran into issues that I couldn`t resolve without access to the base part of the program (not the .vert or .frag) but that wasn`t included in the software, meaning I was constantly finding work arounds. The other problem was a lot of the syntax we learned in class had to be thrown out the window because the software works in version 1.8ish. It never actually said what version, but whenever I tried something from the newer version it would yell at me in confusion.
![]() |
| Final sphere result |
So in the end this is what I settled on as being good enough. I was tired of working on it and the thought of trying to add in displacement/normal mapping... again.... *shudder*
I'm pretty pleased with it overall though, it's a fairly basic Phong shader that ought to have a specular map but for whatever reason doesn't show it. I honestly think that's a flaw in the software though, not my shader's code. I guess I'll find out when I get our TA to take a look at it on Thursday/Friday but it was such a pain in the butt I doubt I'll finish it up unless it's the easiest fix.
On the plus side, this has really helped reinforce all the practical stuff we've learned in Graphics this semester. Before yesterday shader programming was a huge mystery to me, not with the theory but the code itself. It still boggles my mind where this information comes from to get into the program but hey, who am I to argue if it works!
![]() |
| Code Screenshot (.frag) |
Side note: f this is considered a 2/2 blog, and my other ones all aren't, please let me know! I'd really like to know what is being looked for in order to do well in this portion of the course, and without feedback we're all feeling rather in the dark. Even just a heads-up of how many points we all have so far would be super appreciated!! :-)






