~saiarcot895/ubuntu/trusty/openscenegraph/armhf-support

« back to all changes in this revision

Viewing changes to OpenSceneGraph/src/osgShadow/ShadowTexture.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Loic Dachary (OuoU)
  • Date: 2009-03-23 14:08:20 UTC
  • mfrom: (1.1.7 upstream) (2.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20090323140820-i4j3jozdlhyn4lre
rules prevent lib64 with -D LIB_POSTFIX="" (Closes: #517671)

Show diffs side-by-side

added added

removed removed

Lines of Context:
207
207
            lightDir.normalize();
208
208
 
209
209
            // set the position far away along the light direction
210
 
            osg::Vec3 position = lightDir * bb.radius()  * 20;
 
210
            osg::Vec3 position = bb.center() + lightDir * bb.radius() * 2.0;
211
211
 
212
212
            float centerDistance = (position-bb.center()).length();
213
213