diff options
| author | Joe Ludwig <[email protected]> | 2013-07-30 15:10:15 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-07-30 15:10:15 -0700 |
| commit | d9ac276a957034bba99d71c1ecbfb53c3d2d1c87 (patch) | |
| tree | ac1d618bc96127fcc03cc7c6f493043ca30c5564 /mp/src/materialsystem/stdshaders/SDK_bloomadd_ps2x.fxc | |
| parent | Revised the contribution guidelines to encourage more interaction within the ... (diff) | |
| download | source-sdk-2013-d9ac276a957034bba99d71c1ecbfb53c3d2d1c87.tar.xz source-sdk-2013-d9ac276a957034bba99d71c1ecbfb53c3d2d1c87.zip | |
Added bloom shader and screenspace effect helpers as examples for the SDK.
Diffstat (limited to 'mp/src/materialsystem/stdshaders/SDK_bloomadd_ps2x.fxc')
| -rw-r--r-- | mp/src/materialsystem/stdshaders/SDK_bloomadd_ps2x.fxc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mp/src/materialsystem/stdshaders/SDK_bloomadd_ps2x.fxc b/mp/src/materialsystem/stdshaders/SDK_bloomadd_ps2x.fxc new file mode 100644 index 00000000..9faf9ecd --- /dev/null +++ b/mp/src/materialsystem/stdshaders/SDK_bloomadd_ps2x.fxc @@ -0,0 +1,23 @@ +//======= Copyright � 1996-2006, Valve Corporation, All rights reserved. ======
+#define CONVERT_TO_SRGB 0
+
+#include "common_ps_fxc.h"
+
+sampler TexSampler : register( s0 );
+
+struct PS_INPUT
+{
+ HALF2 baseTexCoord : TEXCOORD0; // Base texture coordinate
+
+#if defined( _X360 ) //matching pixel shader inputs to vertex shader outputs to avoid shader patches
+ float2 ZeroTexCoord : TEXCOORD1;
+ float2 bloomTexCoord : TEXCOORD2;
+#endif
+};
+
+float4 main( PS_INPUT i ) : COLOR
+{
+ float4 result = tex2D( TexSampler, i.baseTexCoord );
+ result.a = 1.0f;
+ return result; //FinalOutput( result, 0, PIXEL_FOG_TYPE_NONE, TONEMAP_SCALE_NONE );
+}
|