标签:
osg::ref_ptr<osg::Material> material = new osg::Material(); //模型材质信息 material->setTransparency(osg::Material::FRONT_AND_BACK, 1.0); material->setEmission(osg::Material::FRONT_AND_BACK, osg::Vec4(1.0,0.0,0.0,1.0)); //设置发光 geode2->getOrCreateStateSet()->setAttributeAndModes(material,osg::StateAttribute::ON);
标签:
原文地址:http://www.cnblogs.com/xiaocainiao2hao/p/5619946.html