[osg-users] OpenGL ES 2.0 and LIGHTING

Grigoriy Mylnikov digitalw0lf at yandex.ru
Tue Nov 20 04:16:10 PST 2018


Hi,

One more question. If I use gl_ModelViewMatrix in shaders to transform Light position, it gets transformed by both camera matrix and current node's matrix, that is not right.
Is there some build-in OSG uniform that holds only camera matrix or only model matrix? Or I should compute it and pass as my own uniform?

Thank you!

Cheers,
Grigoriy

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75218#75218







More information about the osg-users mailing list