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

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