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.

29 lines
564 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. float3 vTexCoord : TEXCOORD0;
  7. float4 vColor : COLOR0;
  8. };
  9. struct VS_OUTPUT
  10. {
  11. float4 projPos : POSITION;
  12. float3 vTexCoord : TEXCOORD0;
  13. float4 vColor : TEXCOORD1;
  14. };
  15. VS_OUTPUT main( const VS_INPUT v )
  16. {
  17. VS_OUTPUT o = ( VS_OUTPUT )0;
  18. o.projPos.xyzw = mul( float4( v.vPos.xyz, 1.0f ), cModelViewProj );
  19. o.vTexCoord = v.vTexCoord;
  20. o.vColor.rgba = v.vColor.rgba;
  21. return o;
  22. }