mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +00:00
Enable ParticleSystem's FreezeOnCull, big speed-up in Vivec
This commit is contained in:
parent
a1e74a35a2
commit
b5099324d1
1 changed files with 2 additions and 0 deletions
|
@ -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().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->getDefaultParticleTemplate().setAlphaRange(osgParticle::rangef(1.f, 1.f));
|
||||||
|
|
||||||
|
partsys->setFreezeOnCull(true);
|
||||||
|
|
||||||
osg::ref_ptr<Emitter> emitter = handleParticleEmitter(partctrl);
|
osg::ref_ptr<Emitter> emitter = handleParticleEmitter(partctrl);
|
||||||
emitter->setParticleSystem(partsys);
|
emitter->setParticleSystem(partsys);
|
||||||
emitter->setReferenceFrame(osgParticle::ParticleProcessor::RELATIVE_RF);
|
emitter->setReferenceFrame(osgParticle::ParticleProcessor::RELATIVE_RF);
|
||||||
|
|
Loading…
Reference in a new issue