Added haveAppliedAttribute to allow draw callbacks to get access to the
current active lights.
This commit is contained in:
@@ -50,6 +50,9 @@ void RenderStageLighting::draw(osg::State& state,RenderLeaf*& previous)
|
||||
|
||||
// apply the light source.
|
||||
litr->first->apply(state);
|
||||
|
||||
// tell state about.
|
||||
state.haveAppliedAttribute(litr->first);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user