Refactored osgParticle so that it natives support vertex arrays, vertex buffer objects and vertex array objects
This commit is contained in:
@@ -63,6 +63,15 @@ namespace osgParticle
|
||||
return osg::maximum(_minimumNumberOfParticlesToCreate, i);
|
||||
}
|
||||
|
||||
|
||||
virtual int getEstimatedMaxNumOfParticles(double lifeTime) const
|
||||
{
|
||||
int minNumParticles = static_cast<int>(_minimumNumberOfParticlesToCreate*60.0f*lifeTime);
|
||||
int baseNumPartciles = static_cast<int>(_numberOfParticlesPerSecondToCreate * lifeTime);
|
||||
return osg::maximum(minNumParticles, baseNumPartciles);
|
||||
}
|
||||
|
||||
|
||||
protected:
|
||||
virtual ~ConstantRateCounter() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user