summaryrefslogtreecommitdiffstatshomepage
path: root/hlsl/deconverge.fx
diff options
context:
space:
mode:
author ImJezze <jezze@gmx.net>2015-12-26 12:27:07 +0100
committer ImJezze <jezze@gmx.net>2015-12-26 12:27:07 +0100
commitff77b7897bcf0a967f7e275b289a1f8fd18ecd7e (patch)
treeaeb9666f35abd4c843a8011af426b6dd4c8243b9 /hlsl/deconverge.fx
parent1b373eb812d11dfeb0fead627f7df4e827e27f8f (diff)
Cleanup (nw)
- renamed shadow_mask_type to shadow_mask_tile_mode - renamed bloom_type to bloom_blend_mode - implemented "Source" shadow mask tile mode for artwork_support/post.fx
Diffstat (limited to 'hlsl/deconverge.fx')
-rw-r--r--hlsl/deconverge.fx8
1 files changed, 4 insertions, 4 deletions
diff --git a/hlsl/deconverge.fx b/hlsl/deconverge.fx
index 341d614873b..3de37764e4f 100644
--- a/hlsl/deconverge.fx
+++ b/hlsl/deconverge.fx
@@ -71,7 +71,7 @@ uniform float Prescale;
VS_OUTPUT vs_main(VS_INPUT Input)
{
VS_OUTPUT Output = (VS_OUTPUT)0;
-
+
float2 invDims = 1.0f / SourceDims;
float2 Ratios = SourceRect;
Output.Position = float4(Input.Position.xyz, 1.0f);
@@ -92,7 +92,7 @@ VS_OUTPUT vs_main(VS_INPUT Input)
Output.CoordX = ((((TexCoord.x / Ratios.x) - 0.5f)) * (1.0f + RadialConvergeX / SourceDims.x) + 0.5f) * Ratios.x + ConvergeX * invDims.x;
Output.CoordY = ((((TexCoord.y / Ratios.y) - 0.5f)) * (1.0f + RadialConvergeY / SourceDims.y) + 0.5f) * Ratios.y + ConvergeY * invDims.y;
- Output.TexCoord = TexCoord;
+ Output.TexCoord = TexCoord;
return Output;
}
@@ -103,11 +103,11 @@ VS_OUTPUT vs_main(VS_INPUT Input)
float4 ps_main(PS_INPUT Input) : COLOR
{
- float Alpha = tex2D(DiffuseSampler, Input.TexCoord).a;
+ float Alpha = tex2D(DiffuseSampler, Input.TexCoord).a;
float RedTexel = tex2D(DiffuseSampler, float2(Input.CoordX.x, Input.CoordY.x)).r;
float GrnTexel = tex2D(DiffuseSampler, float2(Input.CoordX.y, Input.CoordY.y)).g;
float BluTexel = tex2D(DiffuseSampler, float2(Input.CoordX.z, Input.CoordY.z)).b;
-
+
return float4(RedTexel, GrnTexel, BluTexel, Alpha);
}