mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-25 03:29:51 +01:00
feat: texture exporter
This commit is contained in:
1 parent
f52460e98b
commit
e79ed0cf85
2 files changed
+35
-15
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user