aboutsummaryrefslogtreecommitdiff
path: root/sp/src/materialsystem/stdshaders/debugmorphaccumulator_ps30.fxc
diff options
context:
space:
mode:
Diffstat (limited to 'sp/src/materialsystem/stdshaders/debugmorphaccumulator_ps30.fxc')
-rw-r--r--sp/src/materialsystem/stdshaders/debugmorphaccumulator_ps30.fxc16
1 files changed, 16 insertions, 0 deletions
diff --git a/sp/src/materialsystem/stdshaders/debugmorphaccumulator_ps30.fxc b/sp/src/materialsystem/stdshaders/debugmorphaccumulator_ps30.fxc
new file mode 100644
index 00000000..b479085c
--- /dev/null
+++ b/sp/src/materialsystem/stdshaders/debugmorphaccumulator_ps30.fxc
@@ -0,0 +1,16 @@
+#define HDRTYPE HDR_TYPE_NONE
+#include "common_ps_fxc.h"
+
+struct PS_INPUT
+{
+ float2 vTexCoord : TEXCOORD0;
+};
+
+sampler MorphAccumulator : register( s0 );
+
+HALF4 main( PS_INPUT i ) : COLOR
+{
+ float4 vDeltas = tex2D( MorphAccumulator, i.vTexCoord );
+ return float4( abs( vDeltas.x ), abs( vDeltas.z ), abs( vDeltas.y ) + abs( vDeltas.w ), 1.0f );
+}
+