// --------------------------------------------------------------------
	void ParticleSystem::setLodDistances(const LodDistanceList& lodDistances)
	{
		LodDistanceConstIterator it, itEnd;
		itEnd = lodDistances.end();
		mLodDistanceList.clear();
		for (it = lodDistances.begin(); it != itEnd; ++it)
		{
			mLodDistanceList.push_back((*it) * (*it));
		}
	}
Пример #2
0
    // --------------------------------------------------------------------
    void Material::setLodLevels(const LodDistanceList& lodDistances)
    {
        // Square the distances for the internal list
		LodDistanceList::const_iterator i, iend;
		iend = lodDistances.end();
		// First, clear and add single zero entry
		mLodDistances.clear();
		mLodDistances.push_back(0.0f);
		for (i = lodDistances.begin(); i != iend; ++i)
		{
			mLodDistances.push_back((*i) * (*i));
		}
		
    }