Flip in throughmode for HW T&L

This commit is contained in:
raven02 2013-03-16 20:35:51 +08:00
parent 10e8dc2693
commit 49befb3d41

View File

@ -408,7 +408,10 @@ void GenerateVertexShader(int prim, char *buffer) {
break;
}
if (flipV)
WRITE(p, " v_texcoord.y = 1.0 - v_texcoord.y * 2.0;\n");
if (gstate.isModeThrough())
WRITE(p, " v_texcoord.y = 1.0 - v_texcoord.y;\n");
else
WRITE(p, " v_texcoord.y = 1.0 - v_texcoord.y * 2.0;\n");
}
// Compute fogdepth