top of page
Search
  • Writer's pictureTom Walat

Hit the lights!

Today, to my Blinn-Phong shader, I added light attenuation for point lights and started implementing spotlights. I want the shader to deduce what type of light it is from the parameters, minimising the use of if-else statements as much as possible. So far it works well but needs fine-tuning.

1 view0 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...

Commentaires


bottom of page