Counter Strike : Global Offensive Source Code
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
438 B

  1. //========== Copyright (c) Valve Corporation, All rights reserved. ==========//
  2. #include "common_vs_fxc.h"
  3. struct VS_INPUT
  4. {
  5. float3 vPos : POSITION;
  6. float2 vBaseTexCoord : TEXCOORD0;
  7. };
  8. struct VS_OUTPUT
  9. {
  10. float4 vProjPos : POSITION;
  11. float2 vBaseUV : TEXCOORD0;
  12. };
  13. // Main
  14. VS_OUTPUT main( const VS_INPUT i )
  15. {
  16. VS_OUTPUT o;
  17. o.vProjPos = float4( i.vPos, 1.0f );
  18. o.vBaseUV.xy = i.vBaseTexCoord.xy;
  19. return o;
  20. }