Hi All So I'm doing some work on GLES2 shaders and this particular work requires that I use OSGs own material and light state information.
So the issue is that gl_LightSource, gl_LightModel, gl_FrontLightProduct and gl_FrontMaterial are not available. So my question is what is the best approach to get osg to bind uniforms with this information. i.e. creating osg_LightSource etc uniforms. I've been looking into the attributes responsible for these states and perhaps adding uniform during their apply methods. Does this sound sensible? Any advice would be great. Cheers Tom ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=49046#49046 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

