private void RenderToFile(string projectPath)
        {
            if (string.IsNullOrEmpty(projectPath))
            {
                return;
            }

            DeformationTextureRenderer deformationTextureRenderer = target as DeformationTextureRenderer;

            string    absolutePath      = Path.Combine(Directory.GetCurrentDirectory(), projectPath);
            Texture2D texture2dOriginal = deformationTextureRenderer.Render();

            byte[] bytes = texture2dOriginal.EncodeToEXR();
            File.WriteAllBytes(absolutePath, bytes);
            AssetDatabase.Refresh();

            TextureImporter textureImporter = (TextureImporter)AssetImporter.GetAtPath(projectPath);

            textureImporter.textureCompression = TextureImporterCompression.Uncompressed;
            textureImporter.sRGBTexture        = false;
            textureImporter.mipmapEnabled      = false;
            textureImporter.wrapModeU          = texture2dOriginal.wrapModeU;
            textureImporter.wrapModeV          = texture2dOriginal.wrapModeV;
            textureImporter.SaveAndReimport();
            AssetDatabase.SaveAssets();

            Texture2D texture2dNew = AssetDatabase.LoadAssetAtPath <Texture2D>(projectPath);

            textureAsset.objectReferenceValue = texture2dNew;
        }