Changeset 293 for osgVisual/trunk/src/sky_Silverlining
- Timestamp:
- Jun 5, 2011, 10:33:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/trunk/src/sky_Silverlining/skySilverLining_skyDrawable.cpp
r292 r293 78 78 //direction = view * direction; 79 79 direction.normalize(); 80 81 //OSG_NOTIFY(osg::ALWAYS) << "Light Vector: X:"<<direction.x()<<" Y:"<<direction.y()<<" Z:"<<direction.z() << std::endl; 82 util::AddCylinderBetweenPoints(osg::Vec3d(0,0,0), direction , 10000.0, 15000000.0, osg::Vec4d(1.0, 1.0, 0.0, 1 ), sceneRoot); 80 83 81 84 light->setAmbient(ambient); 82 85 light->setDiffuse(diffuse); 83 86 //light->setSpecular(osg::Vec4(0,0,0,1)); 84 light->setSpecular(osg::Vec4(1.0,1.0,1.0,1)); // Test87 //light->setSpecular(osg::Vec4(1.0,1.0,1.0,1)); // Test 85 88 light->setPosition(osg::Vec4(direction.x(), direction.y(), direction.z(), 0)); 86 89 }
Note: See TracChangeset
for help on using the changeset viewer.