diff --git a/src/osgShadow/ShadowTexture.cpp b/src/osgShadow/ShadowTexture.cpp index 11c1a872e..366c4f6ea 100644 --- a/src/osgShadow/ShadowTexture.cpp +++ b/src/osgShadow/ShadowTexture.cpp @@ -207,7 +207,7 @@ void ShadowTexture::cull(osgUtil::CullVisitor& cv) lightDir.normalize(); // set the position far away along the light direction - osg::Vec3 position = lightDir * bb.radius() * 20; + osg::Vec3 position = bb.center() + lightDir * bb.radius() * 10.0; float centerDistance = (position-bb.center()).length();