feat: texture exporter

This commit is contained in:
tresabhi committed 2025-03-06 19:41:55 -06:00
1 parent f52460e98b
commit e79ed0cf85
2 files changed
+35 -15

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
using CUE4Parse_Conversion.Textures;
using CUE4Parse.UE4.Assets.Exports.Texture;
namespace BlitzKit.CLI.Utils
{
public static class BlitzKitExporter
{
public static byte[] Texture2D(UTexture2D texture)
{
return texture
.Decode(ETexturePlatform.DesktopMobile)!
.Encode(ETextureFormat.Png, 100)
.ToArray();
}
}
}