Changeset 11176
- Timestamp:
- 03/05/10 17:17:12 (3 years ago)
- Location:
- OpenSceneGraph/trunk
- Files:
-
- 2 modified
-
include/osgShadow/MinimalShadowMap (modified) (1 diff)
-
src/osgShadow/MinimalShadowMap.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgShadow/MinimalShadowMap
r9113 r11176 115 115 virtual void cullShadowReceivingScene( ); 116 116 117 virtual void aimShadowCastingCamera( 118 const osg::BoundingSphere &bounds, 119 const osg::Light *light, 120 const osg::Vec4 &worldLightPos, 121 const osg::Vec3 &worldLightDir, 122 const osg::Vec3 &worldLightUp = osg::Vec3(0,1,0) ); 123 117 124 virtual void aimShadowCastingCamera( const osg::Light *light, 118 125 const osg::Vec4 &worldLightPos, -
OpenSceneGraph/trunk/src/osgShadow/MinimalShadowMap.cpp
r11136 r11176 115 115 } 116 116 117 void MinimalShadowMap::ViewData::aimShadowCastingCamera( 118 const osg::BoundingSphere &bs, 119 const osg::Light *light, 120 const osg::Vec4 &lightPos, 121 const osg::Vec3 &lightDir, 122 const osg::Vec3 &lightUpVector 123 /* by default = osg::Vec3( 0, 1 0 )*/ ) 124 { 125 BaseClass::ViewData::aimShadowCastingCamera( bs, light, lightPos, lightDir, lightUpVector ); 126 } 127 117 128 void MinimalShadowMap::ViewData::aimShadowCastingCamera 118 129 ( const osg::Light *light, const osg::Vec4 &lightPos, … … 149 160 } 150 161 151 BaseClass::ViewData::aimShadowCastingCamera 152 ( bb, light, lightPos, lightDir, up ); 162 aimShadowCastingCamera( osg::BoundingSphere( bb ), light, lightPos, lightDir, up ); 153 163 154 164 // Intersect scene Receiving Shadow Polytope with shadow camera frustum
