From bdf5e650a6a39cea23f6aaeccd7652d8129166ae Mon Sep 17 00:00:00 2001 From: "ramapcsx2.code" Date: Mon, 13 Jan 2014 17:48:43 +0000 Subject: [PATCH] GSdx: Quick workaround for DX9 until the shader is adapted. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5813 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/GSdx/res/convert.fx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/GSdx/res/convert.fx b/plugins/GSdx/res/convert.fx index 7ce10cd6d8..478975dfd7 100644 --- a/plugins/GSdx/res/convert.fx +++ b/plugins/GSdx/res/convert.fx @@ -304,12 +304,18 @@ PS_OUTPUT ps_main9(PS_INPUT input) // triangular { PS_OUTPUT output; - float2 texdim, halfpixel; + // Needs DX9 conversion + /*float2 texdim, halfpixel; Texture.GetDimensions(texdim.x, texdim.y); if (ddy(input.t.y) * texdim.y > 0.5) output.c = sample_c(input.t); else output.c = (0.5 - 0.5 * cos(2 * PI * input.t.y * texdim.y)) * sample_c(float2(input.t.x, (floor(input.t.y * texdim.y) + 0.5) / texdim.y)); +*/ + + // replacement shader + int4 p = (int4)input.p; + output.c = ps_crt(input, ((p.x + ((p.y / 2) % 2) * 3) / 2) % 3); return output; }