diff options
author | Ryan Holtz <rholtz@batcountryentertainment.com> | 2011-05-22 02:27:31 +0000 |
---|---|---|
committer | Ryan Holtz <rholtz@batcountryentertainment.com> | 2011-05-22 02:27:31 +0000 |
commit | 53e20c168ff568f618efa3aa5b1e58e5a8457031 (patch) | |
tree | b2585c3df902817c4d3197c87b3d02b10f0f5fa6 /hlsl/focus.fx | |
parent | 2cd23c14765a433c589a9627ae01080cb1f3a5d8 (diff) |
Fixing multiscreen games, nwn
Diffstat (limited to 'hlsl/focus.fx')
-rw-r--r-- | hlsl/focus.fx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hlsl/focus.fx b/hlsl/focus.fx index b31dcf06968..d5bd17971f1 100644 --- a/hlsl/focus.fx +++ b/hlsl/focus.fx @@ -111,7 +111,7 @@ VS_OUTPUT vs_main(VS_INPUT Input) float4 ps_main(PS_INPUT Input) : COLOR { - float3 d0 = tex2D(DiffuseSampler, Input.TexCoord0).rgb; + float4 d0 = tex2D(DiffuseSampler, Input.TexCoord0); float3 d1 = tex2D(DiffuseSampler, Input.TexCoord1).rgb; float3 d2 = tex2D(DiffuseSampler, Input.TexCoord2).rgb; float3 d3 = tex2D(DiffuseSampler, Input.TexCoord3).rgb; @@ -120,10 +120,10 @@ float4 ps_main(PS_INPUT Input) : COLOR float3 d6 = tex2D(DiffuseSampler, Input.TexCoord6).rgb; float3 d7 = tex2D(DiffuseSampler, Input.TexCoord7).rgb; - float3 blurred = (d0 + d1 + d2 + d3 + d4 + d5 + d6 + d7) / 8.0f; + float3 blurred = (d0.rgb + d1 + d2 + d3 + d4 + d5 + d6 + d7) / 8.0f; - blurred = lerp(d0, blurred, 1.0f); - return float4(blurred, 1.0f); + blurred = lerp(d0.rgb, blurred, 1.0f); + return float4(blurred, d0.a); } //----------------------------------------------------------------------------- |