Tag Info

New answers tagged

0

Right now you transform the normal by both the model and view matrices. Instead, just transform by the model matrix. If the view matrix is identity and you're just manipulating the model matrix, then the image results are expected, since rotating a teapot doesn't rotate the world around it. In that case, you should switch and leave the model matrix fixed, ...



Top 50 recent answers are included