1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 20:16:10 +08:00
Files
hl2sdk/materialsystem/stdshaders/debugmorphaccumulator_ps30.fxc

18 lines
418 B
Plaintext
Raw Normal View History

2012-07-06 20:35:59 -05:00
//========== Copyright (c) Valve Corporation, All rights reserved. ==========//
#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 );
}