Ejemplo n.º 1
0
    private static float[][] GenerateTopologicalNoise(int width, int height, BoardTopology topologyType)
    {
        float[][] noise = PerlinNoise.GenerateWhiteNoise(width, height);

        switch (topologyType)
        {
        case BoardTopology.Rolling:
        {
            noise = PerlinNoise.GenerateSmoothNoise(noise, 1);
        }
        break;

        case BoardTopology.Jagged:
            break;
        }

        return(noise);
    }