Axiom.Components.Terrain.TerrainMaterialGenerator.GetMaxLayers C# (CSharp) Method

GetMaxLayers() public method

Get the maximum number of layers supported with the given terrain.
public GetMaxLayers ( Axiom.Components.Terrain.Terrain terrain ) : byte
terrain Axiom.Components.Terrain.Terrain
return byte
        public virtual byte GetMaxLayers(Terrain terrain)
        {
            Profile p = ActiveProfile;
            if (p != null)
                return p.GetMaxLayers(terrain);
            else
                return 0;
        }
        /// <summary>