top of page
Search

Hit the lights!

Writer's picture: Tom WalatTom Walat

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

Comments


COPYRIGHT © TOMASZ WALAT 2022

bottom of page