How do I set PT_ALPHA_REF?

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
kazade
Insane DCEmu
Insane DCEmu
Posts: 145
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Tue May 02, 2017 3:11 pm
Has thanked: 3 times
Been thanked: 34 times

How do I set PT_ALPHA_REF?

Post by kazade »

Apparently the PVR has a register which sets the alpha value threshold used for the PT list, but I can't see any mention of that anywhere in KOS.

How do I go about setting that value?
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5652
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

Re: How do I set PT_ALPHA_REF?

Post by BlueCrab »

Based on what I see in the reicast source code, that would be register 0x011c in the PVR's register space, so you'd use something like this:

Code: Select all

PVR_SET(0x011c, value);
As for what the values mean, my best guess from the reicast source is that the lower 8 bits of it are the value you want to set to whatever you want as the threshold.
kazade
Insane DCEmu
Insane DCEmu
Posts: 145
Joined: Tue May 02, 2017 3:11 pm
Has thanked: 3 times
Been thanked: 34 times

Re: How do I set PT_ALPHA_REF?

Post by kazade »

Excellent! Thanks!
Post Reply