607
605
osg::ref_ptr<osg::Vec4Array> c = new osg::Vec4Array;
608
606
geom->setColorArray( c.get() );
610
608
c->push_back( osg::Vec4( 0.f, 1.f, 1.f, 1.f ) );
612
610
osg::ref_ptr<osg::Vec3Array> n = new osg::Vec3Array;
613
611
geom->setNormalArray( n.get() );
615
613
n->push_back( osg::Vec3( -1.f, 0.f, 0.f ) );
616
614
n->push_back( osg::Vec3( 1.f, 0.f, 0.f ) );
617
615
n->push_back( osg::Vec3( 0.f, 0.f, -1.f ) );