summaryrefslogtreecommitdiffstatshomepage
path: root/hlsl/post.fx
diff options
context:
space:
mode:
author Ryan Holtz <rholtz@batcountryentertainment.com>2011-05-24 18:28:54 +0000
committer Ryan Holtz <rholtz@batcountryentertainment.com>2011-05-24 18:28:54 +0000
commite97aa6b56d7f884f8e54fb90228ee7de03936680 (patch)
treeae919019b46fade67b6eb4920d01c2cfc7fd9983 /hlsl/post.fx
parent3f0f794c592bdd6944e9043ffec9730773325dc6 (diff)
Internal HLSL cleanup - removed aux texcoords, restored software vertex processing due to low-end cards not doing hardware vertex processing, removed unnecessary tristrip->trilist splitting. Restores D3D functionality on integrated chipsets and marginal cards. [Ryan Holtz, Ashura-X]
Diffstat (limited to 'hlsl/post.fx')
-rw-r--r--hlsl/post.fx6
1 files changed, 1 insertions, 5 deletions
diff --git a/hlsl/post.fx b/hlsl/post.fx
index 423bab6d91a..c9bd0f79b04 100644
--- a/hlsl/post.fx
+++ b/hlsl/post.fx
@@ -37,7 +37,6 @@ struct VS_OUTPUT
float4 Position : POSITION;
float4 Color : COLOR0;
float2 TexCoord : TEXCOORD0;
- float2 ExtraInfo : TEXCOORD1;
};
struct VS_INPUT
@@ -45,14 +44,12 @@ struct VS_INPUT
float4 Position : POSITION;
float4 Color : COLOR0;
float2 TexCoord : TEXCOORD0;
- float2 ExtraInfo : TEXCOORD1;
};
struct PS_INPUT
{
float4 Color : COLOR0;
float2 TexCoord : TEXCOORD0;
- float2 ExtraInfo : TEXCOORD1;
};
//-----------------------------------------------------------------------------
@@ -81,7 +78,6 @@ VS_OUTPUT vs_main(VS_INPUT Input)
Output.Position *= float4(2.0f, 2.0f, 1.0f, 1.0f);
Output.Color = Input.Color;
Output.TexCoord = Input.TexCoord + 0.5f / float2(RawWidth, RawHeight);
- Output.ExtraInfo = Input.ExtraInfo;
//float Zoom = 1.0f;
//Output.TexCoord /= Zoom;
@@ -169,7 +165,7 @@ float4 ps_main(PS_INPUT Input) : COLOR
float3 ShadowTexel = lerp(1.0f, tex2D(ShadowSampler, ShadowCoord), UseShadow);
// -- Final Pixel --
- float4 Output = lerp(Input.Color, float4(Scanned * lerp(1.0f, ShadowTexel * 1.25f, ShadowBrightness), BaseTexel.a) * Input.Color, Input.ExtraInfo.x);
+ float4 Output = float4(Scanned * lerp(1.0f, ShadowTexel * 1.25f, ShadowBrightness), BaseTexel.a) * Input.Color;
return Output;
}