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.

23 lines
382 B

  1. // DYNAMIC: "COMPRESSED_VERTS" "0..1"
  2. #include "common_vs_fxc.h"
  3. struct VS_INPUT
  4. {
  5. float4 vPos : POSITION;
  6. float4 vTexCoord0 : TEXCOORD0;
  7. };
  8. struct VS_OUTPUT
  9. {
  10. float4 vProjPos : POSITION;
  11. float2 vUv0 : TEXCOORD0;
  12. };
  13. VS_OUTPUT main( const VS_INPUT i )
  14. {
  15. VS_OUTPUT o;
  16. o.vProjPos.xyzw = mul( i.vPos.xyzw, cModelViewProj );
  17. o.vUv0.xy = i.vTexCoord0.xy;
  18. return o;
  19. }