GX_TL_RGB5A3

Post Reply
OzzyOuzo
Posts: 2
Joined: Wed Sep 20, 2023 8:43 am

GX_TL_RGB5A3

Post by OzzyOuzo » Wed Sep 20, 2023 1:59 pm

Hello,

i'm trying to add transparency to my paletted textures using GX_TL_RGB5A3

documentation says that MSB dictates both transparency and component format..

will it be for opaque texel/palette entry : msb is 1 (0x8000)

F E D C B A 9 8 7 6 5 4 3 2 1 0

MSB(1) R R R R R G G G G G G B B B B B

and for transparent : msb is 0

F E D C B A 9 8 7 6 5 4 3 2 1 0

MSB(0) R R R R G G G G B B B B A A A

???

In any case it draws opaque textures (blending is on)

Anyone has already succeeded with this format conversion ?

thx

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: GX_TL_RGB5A3

Post by WinterMute » Sat Sep 23, 2023 10:44 am

3 alpha bits are at the top. i.e. it's

0AAARRRRGGGGBBBB or 1RRRRRGGGGGBBBBB
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 0 guests