Merge pull request #2848 from raven02/patch-12

Fix black box in Dainiji_Super_Robot_Taisen_Z_Hakaihen
This commit is contained in:
Henrik Rydgård committed 2013-07-19 13:03:16 -07:00
commit b32d0977b6
1 file changed
+1 -1
+1 -1
View File
@@ -205,7 +205,7 @@ void GenerateFragmentShader(char *buffer) {
WRITE(p, "float roundTo255th(in float x) { float y = x + (0.49/255.0); return y - fract(y * 255.0) * (1.0 / 255.0); }\n");
}
if (enableColorTest) {
WRITE(p, "vec3 roundTo255thv(in vec3 x) { vec3 y = x + (0.49/255.0); return y - fract(y * 255.0) * (1.0 / 255.0); }\n");
WRITE(p, "vec3 roundTo255thv(in vec3 x) { vec3 y = x + (0.5/255.0); return y - fract(y * 255.0) * (1.0 / 255.0); }\n");
}
WRITE(p, "void main() {\n");