diff options
author | 2011-05-22 01:30:55 +0000 | |
---|---|---|
committer | 2011-05-22 01:30:55 +0000 | |
commit | 99dffc122e45c592bc10731755594e0ccbc0da1e (patch) | |
tree | a78a9a63be850ee5faad9ad7096d6e243e4eb4fe /hlsl/post.fx | |
parent | 690f25a5820d733dca603e5be0a33e03a930f387 (diff) |
HLSL: Added adjustable color carrier in YIQ processing mode. [Ryan Holtz, Bat Country Entertainment]
HLSL: Fixed resolution-change crash and likely D3D performance regression with -nohlsl on low-spec cards [Ryan Holtz, Bat Country Entertainment]
Diffstat (limited to 'hlsl/post.fx')
-rw-r--r-- | hlsl/post.fx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hlsl/post.fx b/hlsl/post.fx index 617ba5f71d6..78fe988c26d 100644 --- a/hlsl/post.fx +++ b/hlsl/post.fx @@ -84,7 +84,7 @@ VS_OUTPUT vs_main(VS_INPUT Input) Output.ExtraInfo = Input.ExtraInfo; //Output.TexCoord /= 16.0f; - //Output.TexCoord += 0.4875f; + //Output.TexCoord += float2(0.3f, 0.25f); return Output; } @@ -164,7 +164,7 @@ float4 ps_main(PS_INPUT Input) : COLOR float2 ShadowUV = float2(ShadowU, ShadowV); float2 ShadowMaskSize = float2(ShadowMaskSizeX, ShadowMaskSizeY); float2 ShadowFrac = frac(ScreenCurveCoord * ShadowMaskSize * Ratios * 0.5f); - float2 ShadowCoord = ShadowFrac * ShadowUV + 2.5f / ShadowDims; + float2 ShadowCoord = ShadowFrac * ShadowUV + 1.5f / ShadowDims; float3 ShadowTexel = lerp(1.0f, tex2D(ShadowSampler, ShadowCoord), UseShadow); // -- Final Pixel -- |