Exemplo n.º 1
0
    static void GeneratePermutationTexture()
    {
        Texture2D tex = PerlinNoise.CreatePermutationSamplerTexture(TextureFormat.Alpha8);

        SaveTextureAsPNG(tex, Application.dataPath + "/PerlinNoise/Textures/permutation.png");
        AssetDatabase.Refresh();
    }