Exemplo n.º 1
0
    static void GenerateGradientTexture()
    {
        Texture2D tex = PerlinNoise.CreateGradientSamplerTexture(TextureFormat.RGB24);

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