igorseabra4 / IndustrialPark

Viewer and editor for .HIP and .HOP archive files from Heavy Iron Studios games such as SpongeBob SquarePants: Battle for Bikini Bottom and Scooby Doo: Night of 100 Frights (GameCube, PS2, Xbox, PC).
https://heavyironmodding.org/wiki/Industrial_Park_(level_editor)
GNU General Public License v3.0
40 stars 13 forks source link

Correctly cast 4444 ARGB textures to 8888 #35

Closed joeyballentine closed 1 year ago

joeyballentine commented 1 year ago

Fixes the thing we discussed a while back. Now instead of shifting the data, it multiplies it in order to properly convert without creating inaccurate data.

P.S. I'm like 99% sure this is right since I was able to export a texture with pure white and black, but I'm not entirely convinced this isn't somewhat wrong.

joeyballentine commented 1 year ago

Ok, ignore this for now. This didn't completely fix it

joeyballentine commented 1 year ago

Got it, now it works correctly.