internal float GerneateNoise(NoiseDetail x, NoiseDetail y) { float perlinNoise = Mathf.PerlinNoise(x.refinement + x.offset, y.refinement + y.offset); return(perlinNoise); }
internal float GernateDensity(int x, int y, NoiseDetail xDetail, NoiseDetail yDetail) { float perlinNoise = GerneateNoise(new NoiseDetail(x * xDetail.refinement, xDetail.offset), new NoiseDetail(y * yDetail.refinement, yDetail.offset)); return(perlinNoise); }