From Mike Weiblen, switched off lighting of points to make them clearer
This commit is contained in:
parent
6268001c66
commit
dd622d7a9a
@ -103,6 +103,7 @@ osg::Node* createScene(unsigned int noStars)
|
|||||||
|
|
||||||
osg::Geode* geode = new osg::Geode;
|
osg::Geode* geode = new osg::Geode;
|
||||||
geode->addDrawable(geometry);
|
geode->addDrawable(geometry);
|
||||||
|
geode->getOrCreateStateSet()->setMode(GL_LIGHTING,osg::StateAttribute::OFF);
|
||||||
|
|
||||||
osg::Group* group = new osg::Group;
|
osg::Group* group = new osg::Group;
|
||||||
group->addChild(geode);
|
group->addChild(geode);
|
||||||
|
Loading…
Reference in New Issue
Block a user