Пример #1
0
    IEnumerator Export()
    {
        CustomRenderTexture exportRT = NoiseTexGenerator_Single.GenerateNoiseRT(t, scale, width, height, depth);

        yield return(null);

        NoiseTexGenerator.ExportNoiseRTToPNG(exportRT);
        exportRT.Release();
    }
Пример #2
0
    IEnumerator ExportTex3D(bool isPNG)
    {
        CustomRenderTexture exportRT = NoiseTexGenerator_Single.GenerateNoiseRT(t, scale, width, height, depth);

        yield return(null);

        if (isPNG)
        {
            NoiseTexGenerator.SaveRTToPNG(exportRT, width, height, depth);
        }
        else
        {
            NoiseTexGenerator.SaveToTex3D(exportRT, width, height, depth);
        }
        NoiseTexGenerator.SetMaterial();
        exportRT.Release();
    }