Changeset 7703 for OpenSceneGraph/trunk/src/osgShadow/ShadowMap.cpp
- Timestamp:
- 12/16/07 18:41:46 (5 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/src/osgShadow/ShadowMap.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgShadow/ShadowMap.cpp
r7692 r7703 434 434 435 435 // set the position far away along the light direction 436 osg::Vec3 position = lightDir * bb.radius() * 20;436 osg::Vec3 position = bb.center() + lightDir * bb.radius() * 2; 437 437 438 438 float centerDistance = (position-bb.center()).length();
