PDA

View Full Version : Calculating state.matrix.mvp manually



flamz
08-31-2004, 10:24 AM
How can I calculate the value of state.matrix.mvp myself and pass it as a parameter to my vertex shader?

Humus
08-31-2004, 01:35 PM
Not really an advanced question, but multiply the projection and modelview matrixes and you're done.

mvp = projection * modelview;