mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Track alpha blending paramaters in the pixel shader UID.
This commit is contained in:
parent
3939f9595a
commit
98b62d8362
@ -170,6 +170,10 @@ void GetPixelShaderId(PIXELSHADERUID *uid, DSTALPHA_MODE dstAlphaMode)
|
|||||||
ptr += 4; // max: ptr = &uid->values[66]
|
ptr += 4; // max: ptr = &uid->values[66]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ptr[0] |= bpmem.alphaFunc.comp0; // 3
|
||||||
|
ptr[0] |= bpmem.alphaFunc.comp1 << 3; // 3
|
||||||
|
ptr[0] |= bpmem.alphaFunc.logic << 6; // 2
|
||||||
|
|
||||||
if (alphaPreTest == 0 || alphaPreTest == 2)
|
if (alphaPreTest == 0 || alphaPreTest == 2)
|
||||||
{
|
{
|
||||||
ptr[0] |= bpmem.fog.c_proj_fsel.fsel << 8; // 3
|
ptr[0] |= bpmem.fog.c_proj_fsel.fsel << 8; // 3
|
||||||
|
Loading…
Reference in New Issue
Block a user