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.

23 lines
316 B

  1. #include "common_vs_fxc.h"
  2. struct VS_INPUT
  3. {
  4. float4 vPos : POSITION;
  5. };
  6. struct VS_OUTPUT
  7. {
  8. float4 vProjPos : POSITION;
  9. float projPosZ : TEXCOORD0;
  10. };
  11. VS_OUTPUT main( const VS_INPUT v )
  12. {
  13. VS_OUTPUT o = ( VS_OUTPUT )0;
  14. o.vProjPos = mul( v.vPos, cModelViewProj );
  15. o.projPosZ = o.vProjPos.z;
  16. return o;
  17. }