diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /materialsystem/stdshaders/bloomadd_ps2x.fxc | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'materialsystem/stdshaders/bloomadd_ps2x.fxc')
| -rw-r--r-- | materialsystem/stdshaders/bloomadd_ps2x.fxc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/materialsystem/stdshaders/bloomadd_ps2x.fxc b/materialsystem/stdshaders/bloomadd_ps2x.fxc new file mode 100644 index 0000000..aa434b4 --- /dev/null +++ b/materialsystem/stdshaders/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 ); +} |