2
0
Fork 0
mirror of https://github.com/KillzXGaming/Switch-Toolbox synced 2025-02-09 18:43:26 +00:00

Force bc4 alpha on bffnt

This commit is contained in:
KillzXGaming 2020-07-07 19:22:26 -04:00
parent 643c12ef1d
commit 3bb5df711e
2 changed files with 8 additions and 5 deletions
File_Format_Library/FileFormats
BFRES/Bfres Structs/SubFiles
Font/BXFNT/Images

View file

@ -233,7 +233,10 @@ namespace Bfres.Structs
importer.ReadOnlySwizzle = IsSwizzleReadOnly;
importer.ReadOnlyTileMode = IsSwizzleReadOnly;
importer.ReadOnlyFormat = IsFormatReadOnly;
if (DisplayBc4AlphaSetting && DefaultFormat == TEX_FORMAT.BC4_UNORM)
setting.UseBc4Alpha = true;
if (MipMapCount != 0)
{
setting.MipCount = MipMapCount;

View file

@ -28,10 +28,10 @@ namespace FirstPlugin
Format = ConvertToGeneric(BFNTFormat);
if (Format == TEX_FORMAT.BC4_UNORM)
{
/* RedChannel = STChannelType.One;
RedChannel = STChannelType.One;
GreenChannel = STChannelType.One;
BlueChannel = STChannelType.One;
AlphaChannel = STChannelType.Red;*/
AlphaChannel = STChannelType.Red;
}
ImageKey = "Texture";
@ -81,10 +81,10 @@ namespace FirstPlugin
if (Format == TEX_FORMAT.BC4_UNORM)
{
/* RedChannel = STChannelType.One;
RedChannel = STChannelType.One;
GreenChannel = STChannelType.One;
BlueChannel = STChannelType.One;
AlphaChannel = STChannelType.Red;*/
AlphaChannel = STChannelType.Red;
}
// UpdateEditor();