J-Fox
Joined: 26 Sep 2007 Posts: 15 Location: Hannover, Germany
|
Posted: Fri Feb 01, 2008 9:35 pm Post subject: Last parameter for sceGuClutMode - T16? |
|
|
| Code: | sceGuClutMode(GU_PSM_8888,0,0xFF,0xFF);
sceGuClutLoad(0xFFFF/8,rawPalette); |
This makes T16 mode work as far as I can see it.
I tried placing green colors in the upper range, red colors in the lower, both colors were present when rendering the zbuffer.
This makes sense to me too because of this:
| Code: | void sceGuClutMode(unsigned int cpsm, unsigned int shift, unsigned int mask, unsigned int a3)
{
unsigned int argument = (cpsm) | (shift << 2) | (mask << 8) | (a3 << 16);
sceGuSendCommandi(0xC5,argument);
} |
mask and a3 are following which would mean that mask is not only 8 but 16 bits!
Makes me wonder how T32 works...
I could be wrong though, would be great if anyone has more information
//Edit: Looks like I was wrong - but it seems to be something which is added to the color index or something |
|