diff options
Diffstat (limited to 'hlsl/phosphor.fx')
-rw-r--r-- | hlsl/phosphor.fx | 6 |
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); |