1
0
mirror of synced 2024-11-30 18:24:39 +01:00

Adjust default bntx format

This commit is contained in:
KillzXGaming 2019-07-13 18:22:47 -04:00
parent 5b1165e99f
commit 7e3b2c16da
7 changed files with 6 additions and 2 deletions

Binary file not shown.

View File

@ -33,6 +33,9 @@ namespace FirstPlugin
public uint SampleCount = 1;
public uint Pitch = 32;
public uint[] Regs;
public TEX_FORMAT DefaultFormat = TEX_FORMAT.BC1_UNORM_SRGB;
public SurfaceFormat Format;
public SurfaceDim SurfaceDim = SurfaceDim.Dim2D;
@ -106,7 +109,8 @@ namespace FirstPlugin
DecompressedData.Clear();
TexName = STGenericTexture.SetNameFromPath(Name);
Format = TextureData.GenericToBntxSurfaceFormat(Runtime.PreferredTexFormat);
Format = TextureData.GenericToBntxSurfaceFormat(DefaultFormat);
GenerateMipmaps = true;
LoadImage(new Bitmap(Image));
@ -117,7 +121,7 @@ namespace FirstPlugin
DecompressedData.Clear();
TexName = STGenericTexture.SetNameFromPath(FileName);
Format = TextureData.GenericToBntxSurfaceFormat(Runtime.PreferredTexFormat);
Format = TextureData.GenericToBntxSurfaceFormat(DefaultFormat);
GenerateMipmaps = true;

Binary file not shown.

BIN
output.bfres Normal file

Binary file not shown.