Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualL. Spiro

Posted 04 December 2012 - 01:16 AM

Actually that is correct. Green to blue.
And the normal matrix is modelView.Transpose().Inverse(), not modelView.Inverse().

It means your light’s position is wrong. The light’s position should be transformed by the view.Inverse() matrix, not the modelView matrix.


L. Spiro

#1L. Spiro

Posted 04 December 2012 - 01:08 AM

Actually that is correct. Green to blue.
And the normal matrix is modelView.Transpose().Inverse(), not modelView.Inverse().

It means your light’s position is wrong.


L. Spiro

PARTNERS