Changeset 4360 for OpenSceneGraph/trunk/examples/osgpoints/osgpoints.cpp
- Timestamp:
- 06/27/05 16:28:29 (8 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgpoints/osgpoints.cpp
r1984 r4360 25 25 _point = new osg::Point; 26 26 _point->setDistanceAttenuation(osg::Vec3(0.0,0.0005,0.0f)); 27 _point->setDistanceAttenuation(osg::Vec3(0.0,0.0000,0.0 00005f));27 _point->setDistanceAttenuation(osg::Vec3(0.0,0.0000,0.05f)); 28 28 _stateset->setAttribute(_point.get()); 29 29 } … … 43 43 { 44 44 changePointSize(-1.0f); 45 return true; 46 } 47 else if (ea.getKey()=='*') 48 { 49 changePointAttenuation(1.1f); 50 return true; 51 } 52 else if (ea.getKey()=='/') 53 { 54 changePointAttenuation(1.0f/1.1f); 45 55 return true; 46 56 } … … 76 86 { 77 87 setPointSize(getPointSize()+delta); 88 } 89 90 void changePointAttenuation(float scale) 91 { 92 _point->setDistanceAttenuation(_point->getDistanceAttenuation()*scale); 78 93 } 79 94
