mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
shaderc: Added half-texel fixup for D3D9 (experimental, commented out).
This commit is contained in:
@@ -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_"
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user