Exemple #1
0
 public MapLayerOre(long seed, NoiseOre map, float zoomMul, float contrastMul, float sub) : base(seed)
 {
     this.map         = map;
     this.zoomMul     = zoomMul;
     this.contrastMul = contrastMul;
     this.sub         = sub;
 }
Exemple #2
0
        public static MapLayerBase GetOreMap(long seed, NoiseOre oreNoise, float scaleMul, float contrast, float sub)
        {
            MapLayerBase ore = new MapLayerOre(seed + 1, oreNoise, scaleMul, contrast, sub);

            ore.DebugDrawBitmap(DebugDrawMode.RGB, 0, 0, 512, "Ore 1 - Noise");

            ore = new MapLayerPerlinWobble(seed + 2, ore, 5, 0.85f, TerraGenConfig.oreMapWobbleScale, TerraGenConfig.oreMapWobbleScale * 0.15f);
            ore.DebugDrawBitmap(DebugDrawMode.RGB, 0, 0, 512, "Ore 1 - Perlin Wobble");

            return(ore);
        }