Introduced a local StateGraph hierarchy into CullVisitor::apply(osg::Camera&) and RenderBin to fixed RTT Camera bug where multiple RTT Camera end up with the rendering back end results assigned to them which occured when RTT Camera's share the same StateSet or null StateSet.
This commit is contained in:
@@ -73,6 +73,9 @@ class OSGUTIL_EXPORT RenderBin : public osg::Object
|
||||
|
||||
virtual void reset();
|
||||
|
||||
void setStateGraph(StateGraph* sg) { _rootStateGraph = sg; }
|
||||
StateGraph* getStateGraph() { return _rootStateGraph.get(); }
|
||||
|
||||
void setStateSet(osg::StateSet* stateset) { _stateset = stateset; }
|
||||
osg::StateSet* getStateSet() { return _stateset.get(); }
|
||||
const osg::StateSet* getStateSet() const { return _stateset.get(); }
|
||||
@@ -157,6 +160,8 @@ class OSGUTIL_EXPORT RenderBin : public osg::Object
|
||||
|
||||
virtual ~RenderBin();
|
||||
|
||||
osg::ref_ptr<StateGraph> _rootStateGraph;
|
||||
|
||||
int _binNum;
|
||||
RenderBin* _parent;
|
||||
RenderStage* _stage;
|
||||
|
||||
Reference in New Issue
Block a user