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:
Henrik Rydgard committed 2013-12-04 19:55:09 +01:00
1 parent 50f67d631d
commit 41209eb936
1 file changed
+3 -1
+3 -1
View File
@@ -453,7 +453,9 @@ void GenerateFragmentShader(char *buffer) {
break;
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;
}
}