Keep bflim swizzle pattern on texture edit
This commit is contained in:
parent
71a7d06ad0
commit
374488c992
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,3 +11,4 @@ BrawlboxHelper/BrawlHelperTest2.cs
|
|||||||
BrawlboxHelper/BrawlHelperTest2.zip
|
BrawlboxHelper/BrawlHelperTest2.zip
|
||||||
Switch_Toolbox_StreamOverhaul.zip
|
Switch_Toolbox_StreamOverhaul.zip
|
||||||
Toolbox/Lib.zip
|
Toolbox/Lib.zip
|
||||||
|
yuzu-glsl-decompiler
|
||||||
|
@ -530,6 +530,8 @@ namespace FirstPlugin
|
|||||||
MipCount = 1;
|
MipCount = 1;
|
||||||
var Gx2Format = FTEX.ConvertToGx2Format(Format);
|
var Gx2Format = FTEX.ConvertToGx2Format(Format);
|
||||||
|
|
||||||
|
uint swizzle = (image.Swizzle >> 8) & 7;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
//Create image block from bitmap first
|
//Create image block from bitmap first
|
||||||
@ -543,7 +545,7 @@ namespace FirstPlugin
|
|||||||
(uint)image.Height,
|
(uint)image.Height,
|
||||||
(uint)1,
|
(uint)1,
|
||||||
(uint)Gx2Format,
|
(uint)Gx2Format,
|
||||||
(uint)0,
|
(uint)swizzle,
|
||||||
(uint)1,
|
(uint)1,
|
||||||
(uint)MipCount
|
(uint)MipCount
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user