Finally got ambient, specular and diffuse lighting working.You can see each of the different stages. ambient, ambient + diffuse, ambient + diffuse + specular. Two types of specular are included, phong and blinn-phong. I've been working through the Opengl 4.3 programming guide. So I created this demo using SDL2 and Opengl 4.3 to test if I understand the book and learning the math as well. Written in C++
Ещё видео!