Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
448 B

  1. #include "common_vs_fxc.h"
  2. struct VS_INPUT
  3. {
  4. float3 vPos : POSITION;
  5. float2 vBaseTexCoord : TEXCOORD0;
  6. };
  7. struct VS_OUTPUT
  8. {
  9. float4 projPos : POSITION;
  10. float2 baseTexCoord : TEXCOORD0;
  11. };
  12. VS_OUTPUT main( const VS_INPUT v )
  13. {
  14. VS_OUTPUT o = ( VS_OUTPUT )0;
  15. float4 projPos;
  16. float3 worldPos;
  17. projPos = mul( float4( v.vPos, 1 ), cModelViewProj );
  18. o.projPos = projPos;
  19. o.baseTexCoord = v.vBaseTexCoord;
  20. return o;
  21. }