summaryrefslogtreecommitdiffstatshomepage
path: root/hlsl/phosphor.fx
diff options
context:
space:
mode:
author Jonathan Gevaryahu <Lord-Nightmare@users.noreply.github.com>2011-07-29 15:08:32 +0000
committer Jonathan Gevaryahu <Lord-Nightmare@users.noreply.github.com>2011-07-29 15:08:32 +0000
commit1246cde58cfc13408c1347febdf3c70c01809527 (patch)
tree98e5d2fde2091924d1493ff354f0c22035af646d /hlsl/phosphor.fx
parente237b9f406a6f701695e62ace56a511b30b8a21c (diff)
Fix hlsl phosphor decay [nimitz]
Diffstat (limited to 'hlsl/phosphor.fx')
-rw-r--r--hlsl/phosphor.fx6
1 files changed, 2 insertions, 4 deletions
diff --git a/hlsl/phosphor.fx b/hlsl/phosphor.fx
index d7d50f8efab..d1e4d4850db 100644
--- a/hlsl/phosphor.fx
+++ b/hlsl/phosphor.fx
@@ -88,14 +88,12 @@ VS_OUTPUT vs_main(VS_INPUT Input)
// Simple Pixel Shader
//-----------------------------------------------------------------------------
-uniform float RedPhosphor = 0.0f;
-uniform float GreenPhosphor = 0.0f;
-uniform float BluePhosphor = 0.0f;
+uniform float3 Phosphor = float3(0.0f, 0.0f, 0.0f);
float4 ps_main(PS_INPUT Input) : COLOR
{
float4 CurrPix = tex2D(DiffuseSampler, Input.TexCoord);
- float3 PrevPix = tex2D(PreviousSampler, Input.PrevCoord).rgb * float3(RedPhosphor, GreenPhosphor, BluePhosphor);
+ float3 PrevPix = tex2D(PreviousSampler, Input.PrevCoord).rgb * float3(Phosphor.r, Phosphor.g, Phosphor.b);
float RedMax = max(CurrPix.r, PrevPix.r);
float GreenMax = max(CurrPix.g, PrevPix.g);