Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
The problem with the code is that you are transforming the light with the model matrix, that is the position and orientation of the object you are rendering. If anything you need to transform the light with the view matrix.
The problem with the code is that you are transforming the light with the model matrix, that is the position and orientation of the object you are rendering. If anything you need to transform the light with the view matrix.
The problem with the code is that you are transforming the light with the model matrix, that is the position and orientation of the object you are rendering.
The problem with the code is that you are transforming the light with the model matrix, that is the position and orientation of the object you are rendering. If anything you need to transform the light with the view matrix.