Show
Ignore:
Timestamp:
11/24/06 12:37:57 (8 years ago)
Author:
robert
Message:

Added support for positional lights into computeShadowVolumeGeometry code and cleaned up OccluderGeometry? interface.

Files:
1 modified

Legend:

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

    r5747 r5749  
    151151     
    152152    osg::ref_ptr<osgShadow::ShadowVolumeGeometry> shadowVolume = new osgShadow::ShadowVolumeGeometry; 
     153 
     154#if 0 
     155    occluder->comptueShadowVolumeGeometry(osg::Vec4(bb.xMin(), bb.yMin(), bb.zMax() + bb.radius() ,1.0f), *shadowVolume); 
     156#else 
    153157    occluder->comptueShadowVolumeGeometry(osg::Vec4(0.5f,-.5f,-1.0f,0.0f), *shadowVolume); 
     158#endif 
    154159    geode->addDrawable(shadowVolume.get()); 
    155160