|
I've added a section for regular depth-shadows and uploaded a re-worked version of the example. Just realized I forgot to add a main program, so here's how to use the classes: // initial set-up mShadow = new osg::osgSceneManager; if (arguments.read("-fixed")) { mShadow->getShadowUtil()->setExtensionType(osg::osgDepthShadow::shadowExtensionFixedFunct); } mShadow->initializeSceneDefaults(); // add things to scene like this // inShadow does nothing for now, shadows get applied to everything addToScene(osg::Node* node,bool occluder=true, bool inShadow=true); scene = mShadow->getSceneRootInstance().get(); // standard from here on: viewer->setSceneData(scene); I hope this helps pushing the shadow library a bit forward. -- Mihai Radu cm-labs.com |
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
