soopercool101 / BrawlCrate

BrawlBox/BrawlTools Fork, Wii File Editor
https://discord.gg/s7c8763
GNU Lesser General Public License v3.0
148 stars 38 forks source link

Indirect texture corruption #31

Open Thevayl opened 3 years ago

Thevayl commented 3 years ago

Description Materials with indirect texture get corrupted and don't display correctly or at all.

To Reproduce Steps to reproduce the behavior: 1) Create or import a material and his shader with indirect texturing.

Expected behavior In game, textures are displayed as if there was no indirect texturing or are not displaying correctly with 2 different results depending of the camera angle. Some hexadecimal values defining the instruction to display the indirect texture are missing in the file after editing. Only a bunch of zero remain after 61 25 00 00 00 61 26 00 at 0x560. Trying to fix it by changing the hex values trow a error in game.

Screenshots https://imgur.com/a/gaeHi2k

Desktop

Materials.zip