top of page
Search
  • Writer's pictureTom Walat

Camera + Blinn-Phong

Today I implemented camera movement into my shaders tool - I based it on my code from last semester's module. The camera is in arcball style, and although not 100% perfect, it does the job.


Additionally, I added Blinn-Phong shaders to my program's list of shaders. Rather than having a single shader, I opted for the ability to change them at runtime so that:

  1. I learn how to handle multiple shader programs and how to dynamically swap them

  2. I'm not overriding and deleting previous work (I mean I am using GitHub so this is not actually a big deal)

  3. it helps me understand what's going on if something with a new shader is not looking right (i.e. compare and contrast)

Of course, I couldn't resist also having a flat version of each one - I'll have to trim down on the amount of shaders for the final product (especially since some of them are unnecessary - I'm looking at you flat Phong).




0 views0 comments

Recent Posts

See All

Shaders Switching

Today I researched more about GLSL, particularly into changing between shaders at run time. Off the back of that, I learned about...

Comments


bottom of page