|
|
@ -118,8 +118,9 @@ void CSVRender::CellArrow::buildShape()
|
|
|
|
for (int i=0; i<6; ++i)
|
|
|
|
for (int i=0; i<6; ++i)
|
|
|
|
colours->push_back (osg::Vec4f (0.8f, (i==2 || i==5) ? 0.6f : 0.4f, 0.0f, 1.0f));
|
|
|
|
colours->push_back (osg::Vec4f (0.8f, (i==2 || i==5) ? 0.6f : 0.4f, 0.0f, 1.0f));
|
|
|
|
|
|
|
|
|
|
|
|
geometry->setColorArray (colours);
|
|
|
|
geometry->setColorArray (colours, osg::Array::BIND_PER_VERTEX);
|
|
|
|
geometry->setColorBinding (osg::Geometry::BIND_PER_VERTEX);
|
|
|
|
|
|
|
|
|
|
|
|
geometry->getOrCreateStateSet()->setMode (GL_LIGHTING, osg::StateAttribute::OFF);
|
|
|
|
|
|
|
|
|
|
|
|
osg::ref_ptr<osg::Geode> geode (new osg::Geode);
|
|
|
|
osg::ref_ptr<osg::Geode> geode (new osg::Geode);
|
|
|
|
geode->addDrawable (geometry);
|
|
|
|
geode->addDrawable (geometry);
|
|
|
|