[osg-users] OpenGL ES 2.0 and LIGHTING

Grigoriy Mylnikov digitalw0lf at yandex.ru
Fri Nov 16 08:00:39 PST 2018


After some trial and errors, I managed to do it in shader. But this means one redundant matrix multiplication per each vertex. Isn't it more effective to compute it once per frame on cpu side?

What's the purpose of state.getModelViewMatrix()? I expected to get a camera*model matrix there. Or it is not yet defined at the moment lights are applied?

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







More information about the osg-users mailing list