Changeset 292 for osgVisual/trunk/src
- Timestamp:
- Jun 5, 2011, 6:44:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/trunk/src/sky_Silverlining/skySilverLining_skyDrawable.cpp
r281 r292 70 70 71 71 direction = osg::Vec3(x, y, z); 72 ambient = osg::Vec4(ra, ga, ba, 1.0); 72 ambient = osg::Vec4(ra, ga, ba, 1.0); 73 //ambient = osg::Vec4(ra*0.1, ga*0.1, ba*0.1, 1.0); // For use with shadow 73 74 diffuse = osg::Vec4(rd, gd, bd, 1.0); 74 75 75 76 // xform the light direction into camera coordinates 76 osg::Quat view = _view->getCamera()->getViewMatrix().getRotate();77 //osg::Quat view = _view->getCamera()->getViewMatrix().getRotate(); 77 78 //direction = view * direction; 78 79 direction.normalize(); … … 80 81 light->setAmbient(ambient); 81 82 light->setDiffuse(diffuse); 82 light->setSpecular(osg::Vec4(0,0,0,1)); 83 //light->setSpecular(osg::Vec4(0,0,0,1)); 84 light->setSpecular(osg::Vec4(1.0,1.0,1.0,1)); // Test 83 85 light->setPosition(osg::Vec4(direction.x(), direction.y(), direction.z(), 0)); 84 86 }
Note: See TracChangeset
for help on using the changeset viewer.