mirror of https://github.com/bkaradzic/bgfx
shaderc: Added half-texel fixup for D3D9 (experimental, commented out).
This commit is contained in:
parent
68cb2b310a
commit
53e2439eba
|
@ -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_"
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue