PDA

View Full Version : Transforming the normal in a VS



flamz
08-13-2004, 12:21 PM
Hi,

I need to "manually" transform the normal in my vertex shader. Do I simply transform it just like it was a vertex unsing the mvp?

sorry for the lame question...

CatAtWork
08-13-2004, 10:31 PM
Inverse transpose of the modelview.
state.modelview.invtrans