gwaldron/osgearth — pull request #197 by tomhog (2012-08-08 20:46:18+00:00)
Title: Topic gles ios

Fixes for lights and Skynode shaders

Merged with lastest master branch

Wondered about your thoughts on the functions

static const osg::Light*
getLightByID(const StateSetStack& statesetStack, int id)

and

static const osg::Material*
getFrontMaterial(const StateSetStack& statesetStack)

Perhaps a getAttribute function is more appropriate, also I couldn't get it working with the code to find the
ON state in the stack, but this may have something to do with states in the globalstate not being in thestateset stack. This may be related to the default light being disabled in non fixed function osg (see sceneview.cpp), but I'm pretty certain I reenabled it all in my osg build.

Anyhow, see what you think