Changeset 7545 for OpenSceneGraph/trunk/examples/osgshadow/osgshadow.cpp
- Timestamp:
- 10/03/07 14:48:23 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgshadow/osgshadow.cpp
r7539 r7545 691 691 if (postionalLight) 692 692 { 693 lightpos.set(bb.center().x(), bb.center().y(), bb.zMax() + bb.radius() ,1.0f);693 lightpos.set(bb.center().x(), bb.center().y(), bb.zMax() + bb.radius()*2.0f ,1.0f); 694 694 } 695 695 else … … 730 730 lightdir.normalize(); 731 731 ls->getLight()->setDirection(lightdir); 732 ls->getLight()->setSpotCutoff( 30.0f);732 ls->getLight()->setSpotCutoff(25.0f); 733 733 734 734 //set the LightSource, only for checking, there is only 1 light in the scene … … 783 783 if (postionalLight) 784 784 { 785 lightpos.set(bb.center().x()+sinf(t)*bb.radius(), bb.center().y() + cosf(t)*bb.radius(), bb.zMax() + bb.radius()* 2.0f ,1.0f);785 lightpos.set(bb.center().x()+sinf(t)*bb.radius(), bb.center().y() + cosf(t)*bb.radius(), bb.zMax() + bb.radius()*3.0f ,1.0f); 786 786 } 787 787 else
