top of page
Search

Hit the lights!

  • Writer: Tom Walat
    Tom Walat
  • Mar 25, 2022
  • 1 min read

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.

 
 
 

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


COPYRIGHT © TOMASZ WALAT 2022

bottom of page