[osg-users] Matrix multiplication order
Florian GOLESTIN
florian.golestin at gmail.com
Thu Mar 22 02:53:13 PDT 2018
Hi everyone !
I don't get why in GLSL you transform a vertex like this:
Code:
vec4 result = matrix * vertex;
While in OSG I have to do it in the reverse order :
Code:
osg::Vec4 result = vertex * matrix;
Is it due to the Matrices major mode that are different from OpenGL and OpenSceneGraph ?
Thanks for demystifying me!
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=73145#73145
More information about the osg-users
mailing list