shaderc: Added half-texel fixup for D3D9 (experimental, commented out).

This commit is contained in:
Branimir Karadžić 2016-04-14 19:40:53 -07:00
parent 68cb2b310a
commit 53e2439eba
1 changed files with 10 additions and 0 deletions

View File

@ -1653,6 +1653,16 @@ namespace bgfx
preprocessor.writef(
"\n#define __RETURN__ \\\n"
"\t} \\\n"
);
if (hlsl <= 3)
{
// preprocessor.writef(
// "\tgl_Position.xy += u_viewTexel.xy * gl_Position.w; \\\n"
// );
}
preprocessor.writef(
"\treturn _varying_"
);
}