|
osg::ref_ptr<osgParticle::SmokeEffect> createSmoke()
{
osg::Vec3 wind(1.0f,0.0f,0.0f);
osg::Vec3 position(-68.0f,803.0f,3.5f);
osg::ref_ptr<osgParticle::SmokeEffect> smoke = new osgParticle::SmokeEffect(position, 1.0f,1.0f);
smoke->setWind(wind);
smoke->setName(gSmoke);
return smoke.get();
}
我用这段代码创建了烟雾效果,但是过一段时间烟雾就没有了,怎么让他不消失呀?
本人菜鸟,各位大大不要见笑。~ |
|