Jump to content
  • Advertisement

Archived

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

MessageBox

Matrices in a vertex program

This topic is 5395 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
Advertisement
You are correct, mvp[0] is the first ROW of the matrix:

m0, m4, m8, m12

[edited by - bakery2k1 on October 14, 2003 3:59:41 PM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!