mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Stencil-to-alpha fragment tweak: Set alpha to 0 if we can't deduce the stencil value.
This fixes the weird glowing shadows in Wipeout.
This commit is contained in:
parent
50f67d631d
commit
41209eb936
1 changed files with 3 additions and 1 deletions
|
@ -453,7 +453,9 @@ void GenerateFragmentShader(char *buffer) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case STENCIL_VALUE_UNKNOWN:
|
case STENCIL_VALUE_UNKNOWN:
|
||||||
// Do nothing.
|
// Maybe we should even mask away alpha using glColorMask and not change it at all? We do get here
|
||||||
|
// if the stencil mode is KEEP for example.
|
||||||
|
WRITE(p, " gl_FragColor.a = 0.0;\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue