IEnumerator Export() { CustomRenderTexture exportRT = NoiseTexGenerator_Single.GenerateNoiseRT(t, scale, width, height, depth); yield return(null); NoiseTexGenerator.ExportNoiseRTToPNG(exportRT); exportRT.Release(); }
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(); }