Skip to main content
deleted 66 characters in body
Source Link
rioki
  • 2.9k
  • 1
  • 24
  • 28

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.

Source Link
rioki
  • 2.9k
  • 1
  • 24
  • 28

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.