[osg-users] OpenGL ES 2.0 and LIGHTING

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


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!


Read this topic online here:

More information about the osg-users mailing list