OpenGL engine thingie - specular highlights, no view matrix multiplication now

Channel:
Subscribers:
22
Published on ● Video Link: https://www.youtube.com/watch?v=viiO7TAROSg



Duration: 0:42
13 views
1


In the last video I was transforming the fragment position to be used by lighting calculations by the view matrix as well as the model matrix. This is what made specular highlights move on the object's surface as I rotated the camera on the same position, which is incorrect. However, there's another error now, wherein specular highlights are shown in the shaded side of the object's surface.