Axiom.Samples.Terrain.TerrainSample.ConfigureTerrainDefaults C# (CSharp) Метод

ConfigureTerrainDefaults() приватный Метод

private ConfigureTerrainDefaults ( Light l ) : Axiom.Components.Terrain.ImportData
l Axiom.Core.Light
Результат Axiom.Components.Terrain.ImportData
		private ImportData ConfigureTerrainDefaults( Light l )
		{
			TerrainGlobalOptions.MaxPixelError = 8;
			TerrainGlobalOptions.CompositeMapDistance = 3000;
			TerrainGlobalOptions.LightMapDirection = l.DerivedDirection;
			TerrainGlobalOptions.CompositeMapAmbient = SceneManager.AmbientLight;
			TerrainGlobalOptions.CompositeMapDiffuse = l.Diffuse;

			ImportData defaultImp = terrainGroup.DefaultImportSettings;
			defaultImp.TerrainSize = TerrainSize;
			defaultImp.WorldSize = TerrainWorldSize;
			defaultImp.InputScale = 100;
			defaultImp.MinBatchSize = 33;
			defaultImp.MaxBatchSize = 65;

			defaultImp.LayerList = new List<LayerInstance>();
			LayerInstance inst = new LayerInstance();
			inst.WorldSize = 100;
			inst.TextureNames = new List<string>();
			inst.TextureNames.Add( "dirt_grayrocky_diffusespecular.dds" );
			inst.TextureNames.Add( "dirt_grayrocky_normalheight.dds" );
			defaultImp.LayerList.Add( inst );

			inst = new LayerInstance();
			inst.WorldSize = 30;
			inst.TextureNames = new List<string>();
			inst.TextureNames.Add( "grass_green-01_diffusespecular.dds" );
			inst.TextureNames.Add( "grass_green-01_normalheight.dds" );
			defaultImp.LayerList.Add( inst );

			inst = new LayerInstance();
			inst.WorldSize = 30;
			inst.TextureNames = new List<string>();
			inst.TextureNames.Add( "growth_weirdfungus-03_diffusespecular.dds" );
			inst.TextureNames.Add( "growth_weirdfungus-03_normalheight.dds" );
			defaultImp.LayerList.Add( inst );

			return defaultImp;
		}