summaryrefslogtreecommitdiff
path: root/materialsystem/stdshaders/windowimposter_ps11.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/windowimposter_ps11.fxc
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'materialsystem/stdshaders/windowimposter_ps11.fxc')
-rw-r--r--materialsystem/stdshaders/windowimposter_ps11.fxc24
1 files changed, 24 insertions, 0 deletions
diff --git a/materialsystem/stdshaders/windowimposter_ps11.fxc b/materialsystem/stdshaders/windowimposter_ps11.fxc
new file mode 100644
index 0000000..24364ce
--- /dev/null
+++ b/materialsystem/stdshaders/windowimposter_ps11.fxc
@@ -0,0 +1,24 @@
+//====== Copyright � 1996-2004, Valve Corporation, All rights reserved. =======
+//
+// Purpose:
+//
+//=============================================================================
+
+#include "common_ps_fxc.h"
+
+sampler EnvmapSampler : register( s0 );
+
+struct PS_INPUT
+{
+ float3 eyeToVertVector : TEXCOORD0;
+ float4 vertexColor : COLOR;
+};
+
+HALF4 main( PS_INPUT i ) : COLOR
+{
+ HALF4 color;
+ color.xyz = texCUBE( EnvmapSampler, i.eyeToVertVector );
+ color.a = 1.0f;
+ color *= i.vertexColor;
+ return color;
+}