Archived

This topic is now archived and is closed to further replies.

MessageBox

Matrices in a vertex program

Recommended Posts

I just want to clear something up. if I make this declaration in a vertex program: PARAM mvp[4] = { state.matrix.mvp }; will mvp[0] = m0 m4 m8 m12 or mvp[0] = m0 m1 m2 m3 OpenGL MVP matrix: m0 m4 m8 m12 m1 m5 m9 m13 m2 m6 m10 m14 m3 m7 m11 m15 I think mvp[0] = the first ROW of the MVP matrix but I''m not 100%sure.

Share this post


Link to post
Share on other sites