I am currently writing some advanced lighting shaders for my OpenInventor 9.x programs. I now need the model matrix in the vertex shader. The problem is that only the modelview matrix is avaialbel by the build in uniform variable gl_modelViewMatrix, but there is no build in variable for only the model matrix. My question is know how the model matrix, which is surly available in OIV, can be passed to the vertex shader. Is the SoModelMatrixElement a way to do this and if yes can somebody provide some sample code?
Cheers and many thanks in advance
Leonhard
Cheers and many thanks in advance
Leonhard
Comment