Hi all
I have a gereral question about the use of decoratorStateGraph concept in the
shadow classes. In the VDSM shadow classes we find:
Code:
cv.pushStateSet( _shadowRecievingPlaceholderStateSet.get() );
osg::ref_ptr<osgUtil::StateGraph> decoratorStateGraph =
cv.getCurrentStateGraph();
cullShadowReceivingScene(&cv);
cv.popStateSet();
and later on a call to:
Code:
decoratorStateGraph>setStateSet(selectStateSetForRenderingShadow(*vdd));
What is the reason for doing this? I also figured that the selected stateset in
vdd is always cleared and rebuild per frame. I have the impression that this
comes at a performance cost. Why not building the stateset once and pushing it
directly into the cv instead of the placeholder?
Cheers,
Daniel
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=66686#66686
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org