mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: modules list and translations
This commit is contained in:
1 parent
8afc334aa7
commit
e6f9b07b20
23 files changed
+2301
-788
No files matched your search
@@ -1,10 +1,15 @@
|
||||
using Blitzkit;
|
||||
using CUE4Parse_Conversion.Textures;
|
||||
using CUE4Parse.UE4.Assets.Exports.Texture;
|
||||
using CUE4Parse.UE4.Assets.Objects;
|
||||
using CUE4Parse.UE4.Objects.Core.Math;
|
||||
|
||||
namespace BlitzKit.CLI.Utils
|
||||
{
|
||||
public static class BlitzKitExporter
|
||||
{
|
||||
private static readonly float SCALE = 0.01f;
|
||||
|
||||
public static byte[] Texture2D(UTexture2D texture)
|
||||
{
|
||||
return texture
|
||||
@@ -12,5 +17,15 @@ namespace BlitzKit.CLI.Utils
|
||||
.Encode(ETextureFormat.Png, 100)
|
||||
.ToArray();
|
||||
}
|
||||
|
||||
public static Vector3 Vector3(FVector fVector)
|
||||
{
|
||||
return new()
|
||||
{
|
||||
X = SCALE * fVector.X,
|
||||
Y = SCALE * fVector.Z,
|
||||
Z = SCALE * fVector.Y,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user