Last parameter for sceGuClutMode - T16?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
J-Fox
Posts: 15
Joined: Wed Sep 26, 2007 12:25 am
Location: Hannover, Germany

Last parameter for sceGuClutMode - T16?

Post by J-Fox »

Code: Select all

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: Select all

void sceGuClutMode(unsigned int cpsm, unsigned int shift, unsigned int mask, unsigned int a3)
{
	unsigned int argument = &#40;cpsm&#41; | &#40;shift << 2&#41; | &#40;mask << 8&#41; | &#40;a3 << 16&#41;;
	sceGuSendCommandi&#40;0xC5,argument&#41;;
&#125;
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
Post Reply