Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Calculating state.matrix.mvp manually

  1. #1
    Intern Contributor
    Join Date
    Sep 2003
    Location
    Montreal, Canada
    Posts
    77

    Calculating state.matrix.mvp manually

    How can I calculate the value of state.matrix.mvp myself and pass it as a parameter to my vertex shader?

  2. #2
    Senior Member OpenGL Guru Humus's Avatar
    Join Date
    Mar 2000
    Location
    Stockholm, Sweden
    Posts
    2,444

    Re: Calculating state.matrix.mvp manually

    Not really an advanced question, but multiply the projection and modelview matrixes and you're done.

    mvp = projection * modelview;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •