Code: Select all
sceGuClutMode(GU_PSM_8888,0,0xFF,0xFF);
sceGuClutLoad(0xFFFF/8,rawPalette);
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: Select all
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);
}
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