Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
由于在 GLSL 中模型矩阵不可用,我想知道是否可以从 gl_ModelViewMatrix 和我将作为统一传递的“viewmatrix”以编程方式获取它?
如果是,如何?
谢谢你!
您可以通过将模型视图矩阵与视图矩阵的逆矩阵相乘来获得模型矩阵。
gl_ModelViewMatrix * myViewMatrixInverse