コード例 #1
0
        public void UpdateSettings(ColorSettings settings)
        {
            this.settings = settings;
            if (texture == null || texture.height != settings.biomeColorSettings.biomes.Length)
            {
                texture = new Texture2D(textureResolution, settings.biomeColorSettings.biomes.Length);
            }

            biomeNoiseFilter = NoiseFilterFactory.CreateNoiseFilter(settings.biomeColorSettings.noise);
        }
コード例 #2
0
 public void UpdateSettings(ShapeSettings shapeSettings)
 {
     settings     = shapeSettings;
     noiseFilters = new INoiseFilter[settings.noiseLayers.Length];
     for (int i = 0; i < noiseFilters.Length; i++)
     {
         noiseFilters[i] = NoiseFilterFactory.CreateNoiseFilter(settings.noiseLayers[i].noiseSettings);
     }
     elevationMinMax = new MinMax();
 }