summaryrefslogtreecommitdiff
path: root/materialsystem/stdshaders/fillrate_vs20.fxc
diff options
context:
space:
mode:
Diffstat (limited to 'materialsystem/stdshaders/fillrate_vs20.fxc')
-rw-r--r--materialsystem/stdshaders/fillrate_vs20.fxc32
1 files changed, 32 insertions, 0 deletions
diff --git a/materialsystem/stdshaders/fillrate_vs20.fxc b/materialsystem/stdshaders/fillrate_vs20.fxc
new file mode 100644
index 0000000..4d85163
--- /dev/null
+++ b/materialsystem/stdshaders/fillrate_vs20.fxc
@@ -0,0 +1,32 @@
+// DYNAMIC: "DOWATERFOG" "0..1"
+// DYNAMIC: "SKINNING" "0..1"
+
+#include "common_vs_fxc.h"
+
+static const int g_FogType = DOWATERFOG;
+static const bool g_bSkinning = SKINNING ? true : false;
+
+struct VS_INPUT
+{
+ float4 vPos : POSITION;
+ float4 vBoneWeights : BLENDWEIGHT;
+ float4 vBoneIndices : BLENDINDICES;
+};
+
+struct VS_OUTPUT
+{
+ float4 vProjPos : POSITION;
+};
+
+
+VS_OUTPUT main( const VS_INPUT v )
+{
+ VS_OUTPUT o = ( VS_OUTPUT )0;
+
+ float3 worldPos;
+ SkinPosition( g_bSkinning, v.vPos, v.vBoneWeights, v.vBoneIndices, worldPos );
+
+ o.vProjPos = mul( float4( worldPos, 1 ), cViewProj );
+
+ return o;
+} \ No newline at end of file