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
841 B

  1. //====== Copyright � 1996-2007, Valve Corporation, All rights reserved. ===========================
  2. // Includes =======================================================================================
  3. #include "common_vs_fxc.h"
  4. // Input values ===================================================================================
  5. struct VS_INPUT
  6. {
  7. float3 vPos : POSITION;
  8. float2 vBaseTexCoord : TEXCOORD0;
  9. };
  10. // Interpolated values ============================================================================
  11. struct VS_OUTPUT
  12. {
  13. float4 projPos : POSITION;
  14. float2 vUv0 : TEXCOORD0;
  15. };
  16. // Main ===========================================================================================
  17. VS_OUTPUT main( const VS_INPUT i )
  18. {
  19. VS_OUTPUT o;
  20. o.projPos.xyzw = float4( i.vPos.xyz, 1.0f );
  21. o.vUv0.xy = i.vBaseTexCoord.xy;
  22. return o;
  23. }