Can I get the ModelMatrix from build-in gl_xxxMatrix?

kumayu

Newcomer
An engine we are using has a few bug in OpenGL.
Modelmatrix and viewInversematrix in shader is totally wrong.
But all openGL standard build-in matrixs work fine.
(ex: gl_ModelViewMatrix , gl_ProjectionMatrix,gl_.....)

Is it possible to get the ModelMatrix from those build-in gl_xxxMatrix in vertex shader?
I know it's bad for performance, but some shaders need those matrixs.....
 
Back
Top