diff options
author | 2011-05-31 13:53:25 +0000 | |
---|---|---|
committer | 2011-05-31 13:53:25 +0000 | |
commit | f42b5ccda0d819869951538876e8cb8a0433d77b (patch) | |
tree | 0e82d407707cfcc4192e7c19e9bed704ea9e7b25 /hlsl/phosphor.fx | |
parent | 7418f28a638b43aadccc5149340817eca5a69486 (diff) |
No whatsnew
Attempting to fix the HLSL 'blurriness' reported by a few people. Now HLSL will auto-prescale to the nearest texture size that is greater than the target screen size on both axes and is also an even multiple of the raw bitmap's size.
Diffstat (limited to 'hlsl/phosphor.fx')
-rw-r--r-- | hlsl/phosphor.fx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hlsl/phosphor.fx b/hlsl/phosphor.fx index 5f94828dfc3..d7d50f8efab 100644 --- a/hlsl/phosphor.fx +++ b/hlsl/phosphor.fx @@ -79,7 +79,7 @@ VS_OUTPUT vs_main(VS_INPUT Input) float2 InvTexSize = float2(1.0f / TargetWidth, 1.0f / TargetHeight); Output.TexCoord = Input.TexCoord + 0.5f * InvTexSize; - Output.PrevCoord = Input.TexCoord;// + 0.5f * InvTexSize; + Output.PrevCoord = Output.TexCoord; return Output; } @@ -101,7 +101,7 @@ float4 ps_main(PS_INPUT Input) : COLOR float GreenMax = max(CurrPix.g, PrevPix.g); float BlueMax = max(CurrPix.b, PrevPix.b); - return CurrPix;//float4(RedMax, GreenMax, BlueMax, CurrPix.a); + return float4(RedMax, GreenMax, BlueMax, CurrPix.a); } //----------------------------------------------------------------------------- |