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:
parent
643c12ef1d
commit
3bb5df711e
2 changed files with 8 additions and 5 deletions
File_Format_Library/FileFormats
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue