Updates from Marco:sgfxbrowser.cpp (added specular

component to scene light) and AnisotropicLighting.cpp (workaround for a
multiple-context issue).
This commit is contained in:
Robert Osfield
2003-09-01 19:43:58 +00:00
parent 2a2ca0da2c
commit bc14e4ecdc
2 changed files with 26 additions and 9 deletions

View File

@@ -341,6 +341,8 @@ int main(int argc, char *argv[])
osg::ref_ptr<osg::Light> light = new osg::Light;
light->setLightNum(0);
light->setDiffuse(osg::Vec4(1, 1, 1, 1));
light->setSpecular(osg::Vec4(1, 1, 0.8f, 1));
light->setAmbient(osg::Vec4(0.2f, 0.2f, 0.2f, 0.2f));
light->setPosition(osg::Vec4(1, -1, 1, 0));
osg::ref_ptr<osg::LightSource> root = new osg::LightSource;