示例#1
0
        public BiomeProviderRTG(Texture2D world) : base(world)
        {
            //this.rtgWorld = new RTGWorld(world);
            this.biomesToSpawnIn   = new List <Biome>();
            this.borderNoise       = new float[256];
            this.biomePatcher      = new RealisticBiomePatcher();
            this.riverSeparation  /= RTGAPI.config().RIVER_FREQUENCY_MULTIPLIER;
            this.riverValleyLevel *= RTGAPI.config().riverSizeMultiplier();
            this.largeBendSize    *= RTGAPI.config().RIVER_BENDINESS_MULTIPLIER;
            this.smallBendSize    *= RTGAPI.config().RIVER_BENDINESS_MULTIPLIER;

            long seed = this.rtgWorld.world.getSeed();

            simplex = new OpenSimplexNoise(seed);
            cell    = new SimplexCellularNoise(seed);
            //simplexCell = new SimplexCellularNoise(seed);
            river = new VoronoiCellNoise(seed);
            testCellBorder();
        }
示例#2
0
 public SurfaceRiverOasis(BiomeConfig config) : base(config, Pixels.GRASS, (byte)0, Pixels.DIRT, (byte)0)
 {
     this.cutOffScale     = RTGAPI.config().RIVER_CUT_OFF_SCALE;
     this.cutOffAmplitude = RTGAPI.config().RIVER_CUT_OFF_AMPLITUDE;
 }