diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /materialsystem/stdshaders/morphweight_vs30.fxc | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'materialsystem/stdshaders/morphweight_vs30.fxc')
| -rw-r--r-- | materialsystem/stdshaders/morphweight_vs30.fxc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/materialsystem/stdshaders/morphweight_vs30.fxc b/materialsystem/stdshaders/morphweight_vs30.fxc new file mode 100644 index 0000000..0de2c56 --- /dev/null +++ b/materialsystem/stdshaders/morphweight_vs30.fxc @@ -0,0 +1,29 @@ +#include "common_vs_fxc.h" + +struct VS_INPUT +{ + float2 vSrcCoord : TEXCOORD0; + float4 vMorphWeights : TEXCOORD1; +}; + +struct VS_OUTPUT +{ + float4 vDestCoord : POSITION; + float4 vMorphWeights : TEXCOORD0; +}; + +VS_OUTPUT main( const VS_INPUT v ) +{ + VS_OUTPUT o = ( VS_OUTPUT )0; + + // FIXME: Want these to be in pixel centers! + float2 projSpace = v.vSrcCoord.xy; + projSpace *= 2.0f; + projSpace -= 1.0f; + projSpace.y *= -1.0f; + + o.vDestCoord = float4( projSpace.x, projSpace.y, 0.0f, 1.0f ); + o.vMorphWeights = v.vMorphWeights; + + return o; +}
\ No newline at end of file |