summaryrefslogtreecommitdiff
path: root/materialsystem/stdshaders/appchooser360movie_ps2x.fxc
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /materialsystem/stdshaders/appchooser360movie_ps2x.fxc
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'materialsystem/stdshaders/appchooser360movie_ps2x.fxc')
-rw-r--r--materialsystem/stdshaders/appchooser360movie_ps2x.fxc31
1 files changed, 31 insertions, 0 deletions
diff --git a/materialsystem/stdshaders/appchooser360movie_ps2x.fxc b/materialsystem/stdshaders/appchooser360movie_ps2x.fxc
new file mode 100644
index 0000000..ee9930b
--- /dev/null
+++ b/materialsystem/stdshaders/appchooser360movie_ps2x.fxc
@@ -0,0 +1,31 @@
+//======= 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
+{
+ float2 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 vColor : TEXCOORD3;
+};
+
+float4 main( PS_INPUT i ) : COLOR
+{
+ float4 vTextureColor = tex2D( TexSampler, i.baseTexCoord );
+ vTextureColor.r = SrgbGammaToLinear( vTextureColor.r );
+ vTextureColor.g = SrgbGammaToLinear( vTextureColor.g );
+ vTextureColor.b = SrgbGammaToLinear( vTextureColor.b );
+
+ float4 result;
+ result.rgb = vTextureColor.rgb * i.vColor.rgb;
+ result.a = i.vColor.a;
+
+ return result;
+}