Track alpha blending paramaters in the pixel shader UID.

This commit is contained in:
NeoBrainX 2011-09-07 21:12:17 +02:00
parent 3939f9595a
commit 98b62d8362

View File

@ -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