Enable ParticleSystem's FreezeOnCull, big speed-up in Vivec

c++11
scrawl 10 years ago
parent a1e74a35a2
commit b5099324d1

@ -822,6 +822,8 @@ namespace NifOsg
partsys->getDefaultParticleTemplate().setColorRange(osgParticle::rangev4(osg::Vec4f(1.f,1.f,1.f,1.f), osg::Vec4f(1.f,1.f,1.f,1.f)));
partsys->getDefaultParticleTemplate().setAlphaRange(osgParticle::rangef(1.f, 1.f));
partsys->setFreezeOnCull(true);
osg::ref_ptr<Emitter> emitter = handleParticleEmitter(partctrl);
emitter->setParticleSystem(partsys);
emitter->setReferenceFrame(osgParticle::ParticleProcessor::RELATIVE_RF);

Loading…
Cancel
Save