コード例 #1
0
        private void Init(long seed)
        {
            float radius = (float)this.m_data.Radius;
            float num3   = radius + (radius * this.Generator.HillParams.Max);

            this.StorageSize = MyVoxelCoordSystems.FindBestOctreeSize(2f * num3);
            float num4 = this.StorageSize.X * 0.5f;
            MyPlanetTextureMapProvider texProvider = new MyPlanetTextureMapProvider();

            texProvider.Init(seed, this.Generator, this.Generator.MapProvider);
            this.Shape    = new MyPlanetShapeProvider(new Vector3(num4), radius, this.Generator, texProvider.GetHeightmap(), texProvider);
            this.Material = new MyPlanetMaterialProvider(this.Generator, this.Shape, texProvider.GetMaps(this.Generator.PlanetMaps.ToSet()));
        }