Axiom.Graphics.Material.SetLodLevels C# (CSharp) Méthode

SetLodLevels() public méthode

Sets the distance at which level-of-detail (LOD) levels come into effect.
You should only use this if you have assigned LOD indexes to the Technique instances attached to this Material. If you have done so, you should call this method to determine the distance at which the low levels of detail kick in. The decision about what distance is actually used is a combination of this and the LOD bias applied to both the current Camera and the current Entity.
public SetLodLevels ( LodValueList lodDistanceList ) : void
lodDistanceList LodValueList /// A list of floats which indicate the distance at which to /// switch to lower details. They are listed in LOD index order, starting at index /// 1 (ie the first level down from the highest level 0, which automatically applies /// from a distance of 0). ///
Résultat void
		public void SetLodLevels( LodValueList lodDistanceList )
		{
			// clear and add the 0 distance entry
			this._lodValues.Clear();
			this.UserLodValues.Clear();
			this.UserLodValues.Add( float.NaN );
			this._lodValues.Add( LodStrategy.BaseValue );

			foreach ( Real lodValue in lodDistanceList )
			{
				this.UserLodValues.Add( lodValue );
				if ( LodStrategy != null )
				{
					this._lodValues.Add( LodStrategy.TransformUserValue( lodValue ) );
				}
			}
		}