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.

33 lines
634 B

  1. //====== Copyright � 1996-2004, Valve Corporation, All rights reserved. =======
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #include "common_vs_fxc.h"
  7. struct VS_INPUT
  8. {
  9. // If this is float4, and the input is float3, the w component default to one.
  10. float4 vPos : POSITION;
  11. float4 vColor : COLOR0;
  12. };
  13. struct VS_OUTPUT
  14. {
  15. float4 projPos : POSITION;
  16. float4 vColor : COLOR0;
  17. };
  18. VS_OUTPUT main( const VS_INPUT v )
  19. {
  20. VS_OUTPUT o;
  21. float4 projPos;
  22. projPos = mul( v.vPos, cModelViewProj );
  23. o.projPos = projPos;
  24. o.vColor = v.vColor;
  25. return o;
  26. }