diff options
author | Thorvald Natvig <slicer@users.sourceforge.net> | 2009-10-12 16:42:06 +0400 |
---|---|---|
committer | Thorvald Natvig <slicer@users.sourceforge.net> | 2009-10-12 16:42:06 +0400 |
commit | 6a3025549d619d402f9283a533a574bed4c4bf32 (patch) | |
tree | 074669c11ca37b416cd0e01602a14428e7c01b5d /overlay/overlay.fx | |
parent | e8f46da1378dc5525510c9850c62a6f763b5e570 (diff) |
Inproc draw for d3d10
Diffstat (limited to 'overlay/overlay.fx')
-rw-r--r-- | overlay/overlay.fx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/overlay/overlay.fx b/overlay/overlay.fx index abb8116e3..9d2774e30 100644 --- a/overlay/overlay.fx +++ b/overlay/overlay.fx @@ -1,4 +1,5 @@ Texture2D txDiffuse; +float4 fColor; SamplerState samLinear { Filter = MIN_MAG_MIP_LINEAR; @@ -28,8 +29,7 @@ PS_INPUT VS( VS_INPUT input ) float4 PS( PS_INPUT input ) : SV_Target { -// return float4( 1.0f, 1.0f, 0.0f, 0.5f ); // Yellow, with Alpha = 1 - return txDiffuse.Sample(samLinear, input.Tex); + return txDiffuse.Sample(samLinear, input.Tex).bgra * fColor; } technique10 Render |