Archived

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

Matrices in a vertex program

This topic is 5176 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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