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.

25 lines
529 B

  1. #include "common_vs_fxc.h"
  2. struct VS_INPUT
  3. {
  4. float3 vPos : POSITION;
  5. float2 vBaseTexCoord : TEXCOORD0;
  6. float2 vBloomTexCoord : TEXCOORD1;
  7. };
  8. struct VS_OUTPUT
  9. {
  10. float4 projPos : POSITION;
  11. float2 baseTexCoord : TEXCOORD0;
  12. float2 bloomTexCoord : TEXCOORD1;
  13. };
  14. VS_OUTPUT main( const VS_INPUT v )
  15. {
  16. VS_OUTPUT o = ( VS_OUTPUT )0;
  17. o.projPos = float4( v.vPos, 1.0f ); // Just pass these iterators through...
  18. o.baseTexCoord = v.vBaseTexCoord;
  19. o.bloomTexCoord = v.vBloomTexCoord;
  20. return o;
  21. }