phy1um / ps2-homebrew-livestreams

Repo for code written during my Playstation 2 Homebrew livestreams
MIT License
47 stars 6 forks source link

Draw Indexed Textures with CLUT #36

Closed phy1um closed 2 years ago

phy1um commented 2 years ago

Support drawing textures in PSMT8/PSMT8H/PSMT4HH/PSMT4HT/PSMT4 format. These formats are indexed, so we must set CLUT fields in TEX0 (or TEX2) register to setup a pallet to index.

Steps

phy1um commented 2 years ago

Ended up having to do a reasonable overhaul to TGA/texture loading to support this!