Changeset 4805 for OpenSceneGraph/trunk/examples/osglight/osglight.cpp
- Timestamp:
- 11/17/05 21:22:55 (8 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osglight/osglight.cpp
r1983 r4805 84 84 myLight1->setDirection(osg::Vec3(1.0f,1.0f,-1.0f)); 85 85 86 osg::LightSource* lightS1 = new osg::LightSource; 86 osg::LightSource* lightS1 = new osg::LightSource; 87 87 lightS1->setLight(myLight1); 88 88 lightS1->setLocalStateSetModes(osg::StateAttribute::ON); … … 102 102 myLight2->setQuadraticAttenuation(2.0f/osg::square(modelSize)); 103 103 104 osg::LightSource* lightS2 = new osg::LightSource; 104 osg::LightSource* lightS2 = new osg::LightSource; 105 105 lightS2->setLight(myLight2); 106 106 lightS2->setLocalStateSetModes(osg::StateAttribute::ON);
