aboutsummaryrefslogtreecommitdiff
path: root/sp/src/materialsystem/stdshaders/eyeglint_vs20.fxc
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-12-23 14:58:45 -0800
committerJoe Ludwig <[email protected]>2013-12-23 15:00:03 -0800
commit7309a5f13f63fdcc7b1e090f6c176113a9d95061 (patch)
treead65c7fbe46a3c70bdc0a1426e88247ce1b0d7f5 /sp/src/materialsystem/stdshaders/eyeglint_vs20.fxc
parentMerge pull request #182 from ardneran/master (diff)
downloadsource-sdk-2013-7309a5f13f63fdcc7b1e090f6c176113a9d95061.tar.xz
source-sdk-2013-7309a5f13f63fdcc7b1e090f6c176113a9d95061.zip
Added many shader source files
This should include the latest version of every shader that was in the 2007 SDK. It also includes a smattering of debug shaders, both VR distortion shaders, and other assorted shaders that will hopefully be useful. None of these new files are included in the game shader DLL project. If you need to modify one of these shaders for use in your mod you will need to rename it so that you don't collide with the version of that shader that lives in stdshader_dx9.dll.
Diffstat (limited to 'sp/src/materialsystem/stdshaders/eyeglint_vs20.fxc')
-rw-r--r--sp/src/materialsystem/stdshaders/eyeglint_vs20.fxc38
1 files changed, 38 insertions, 0 deletions
diff --git a/sp/src/materialsystem/stdshaders/eyeglint_vs20.fxc b/sp/src/materialsystem/stdshaders/eyeglint_vs20.fxc
new file mode 100644
index 00000000..cf1ccb9b
--- /dev/null
+++ b/sp/src/materialsystem/stdshaders/eyeglint_vs20.fxc
@@ -0,0 +1,38 @@
+//===== Copyright � 1996-2007, Valve Corporation, All rights reserved. ======//
+//
+// Vertex shader to pass through texcoords needed to run the
+// procedural glint generation inner loop in the pixel shader
+//
+// $Header: $
+// $NoKeywords: $
+//===========================================================================//
+
+#include "common_vs_fxc.h"
+
+struct VS_INPUT
+{
+ float3 vPos : POSITION;
+ float2 tc : TEXCOORD0; // Interpolated coordinate of current texel in 3x3 quad
+ float2 glintCenter : TEXCOORD1; // Uniform value containing center of glint in local 3x3 quad
+ float3 glintColor : TEXCOORD2; // Uniform value of color of glint
+};
+
+struct VS_OUTPUT
+{
+ float4 projPos : POSITION;
+ float2 tc : TEXCOORD0; // Interpolated coordinate of current texel in 3x3 quad
+ float2 glintCenter : TEXCOORD1; // Uniform value containing center of glint in local 3x3 quad
+ float3 glintColor : TEXCOORD2; // Uniform value of color of glint
+};
+
+VS_OUTPUT main( const VS_INPUT v )
+{
+ VS_OUTPUT o = ( VS_OUTPUT )0;
+ o.projPos = float4( v.vPos, 1.0f );
+ o.tc = v.tc;
+ o.glintCenter = v.glintCenter;
+ o.glintColor = v.glintColor;
+ return o;
+}
+
+