Show
Ignore:
Timestamp:
02/15/07 23:28:32 (7 years ago)
Author:
robert
Message:

Added support for using the new osgShadow plugin as a psuedo loader such that:

osgviewer cow.osg.shadow

Or to ShadowVolume? rechnique specifically:

osgviewer cow.osg.sv.shadow

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgshadow/osgshadow.cpp

    r6141 r6212  
    454454    osg::ref_ptr<osg::LightSource> ls = new osg::LightSource; 
    455455    ls->getLight()->setPosition(lightpos); 
     456    ls->getLight()->setAmbient(osg::Vec4(1.0,0.0,0.0,1.0)); 
     457    ls->getLight()->setDiffuse(osg::Vec4(0.0,1.0,0.0,1.0)); 
    456458 
    457459    shadowedScene->addChild(model.get()); 
    458460    shadowedScene->addChild(ls.get()); 
     461     
     462    osgDB::writeNodeFile(*shadowedScene, "shadow.osg"); 
     463     
    459464 
    460465    viewer.setSceneData(shadowedScene.get());