Skip to content

Commit

Permalink
fix ia8 texture conversion (alpha channel)
Browse files Browse the repository at this point in the history
Just as Flotonic fixed it in Wumba's Wigwam. Now ia8's are parsed properly for exporting just like Bottles Glasses and Wumba's Wigwam.
  • Loading branch information
Zeldaboy14 committed Aug 4, 2023
1 parent cccef0a commit 8600686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BanjoKazooieLevelEditor/F3DEX.cs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ public byte[] CONVERT_IA8_RGBA8888(ref Texture texture, ref byte[] textureN64Byt
for (int index4 = 0; index4 < texture.textureWidth; ++index4)
{
byte num1 = (byte) ((uint) textureN64Bytes[index2] >> 4);
byte num2 = (byte) ((int) textureN64Bytes[index2] << 4 >> 4);
byte num2 = (byte) ((int) textureN64Bytes[index2] & 0xF);
numArray[index1] = (byte) ((uint) num1 * 17U);
numArray[index1 + 1] = (byte) ((uint) num1 * 17U);
numArray[index1 + 2] = (byte) ((uint) num1 * 17U);
Expand Down

0 comments on commit 8600686

Please sign in to comment.