Skip to content

Commit

Permalink
Switch scrub to use seamless map cuz seams suck
Browse files Browse the repository at this point in the history
  • Loading branch information
Fenyx4 committed Mar 14, 2021
1 parent 0cd40bb commit fa5e7c2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions U4DosRandomizer/WorldMapGenerateMap.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.PixelFormats;
using SimplexNoise;
using System;
using System.Collections.Generic;
Expand Down Expand Up @@ -188,10 +188,10 @@ private Tuple<byte[,], double[,]> MountainMap(Random random)

private byte[,] ScrubMap(Random random)
{
//var scrubNoise = new DiamondSquare(WorldMap.SIZE, 184643518.256878*128, 82759876).getData(random);
SimplexNoise.Noise.Seed = random.Next();
var scrubNoiseFloatLayerOne = SimplexNoise.Noise.Calc2D(SIZE, SIZE, 0.05f);
var scrubNoiseFloatLayerTwo = SimplexNoise.Noise.Calc2D(SIZE, SIZE, 0.01f);
var seed = random.Next();
var scrubNoiseFloatLayerOne = SeamlessSimplexNoise.simplexnoise(seed, SIZE, SIZE, 0.0f, 3.2f);
seed = random.Next();
var scrubNoiseFloatLayerTwo = SeamlessSimplexNoise.simplexnoise(seed, SIZE, SIZE, 0.2f, 6.4f);


var scrubNoiseLayerOne = Float2dToDouble2d(scrubNoiseFloatLayerOne, SIZE);
Expand Down

0 comments on commit fa5e7c2

Please sign in to comment.