mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-12-03 19:21:13 +00:00
Merge pull request #679 from raven02/patch-1
Use enableColorTest for colortest
This commit is contained in:
commit
3f85b56b75
@ -183,13 +183,13 @@ void GenerateFragmentShader(char *buffer)
|
||||
|
||||
// Disabled for now until we actually find a need for it.
|
||||
/*
|
||||
if (gstate.colorTestEnable & 1) {
|
||||
if (enableColorTest) {
|
||||
// TODO: There are some colortestmasks we could handle.
|
||||
int colorTestFunc = gstate.colortest & 3;
|
||||
const char *colorTestFuncs[] = { "#", "#", " == ", " != " }; // never/always don't make sense}
|
||||
int colorTestMask = gstate.colormask;
|
||||
if (colorTestFuncs[colorTestFunc][0] != '#')
|
||||
WRITE(p, "if (!(v.rgb %s u_alphacolorref.rgb)) discard;", colorTestFuncs[colorTestFunc]);
|
||||
WRITE(p, "if (!(v.rgb %s u_alphacolorref.rgb)) discard;\n", colorTestFuncs[colorTestFunc]);
|
||||
}*/
|
||||
|
||||
if (enableFog) {
|
||||
|
Loading…
Reference in New Issue
Block a user