Adjust default bntx format
This commit is contained in:
parent
5b1165e99f
commit
7e3b2c16da
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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
Switch_Toolbox_Library/output.bfres
Normal file
BIN
Switch_Toolbox_Library/output.bfres
Normal file
Binary file not shown.
BIN
output.bfres
Normal file
BIN
output.bfres
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user