Page 1 of 1

GX_TL_RGB5A3

Posted: Wed Sep 20, 2023 1:59 pm
by OzzyOuzo
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

Re: GX_TL_RGB5A3

Posted: Sat Sep 23, 2023 10:44 am
by WinterMute
3 alpha bits are at the top. i.e. it's

0AAARRRRGGGGBBBB or 1RRRRRGGGGGBBBBB