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

  1. //========== Copyright (c) Valve Corporation, All rights reserved. ==========//
  2. //
  3. // Purpose: This is where all common code for vertex shaders go.
  4. //
  5. // $NoKeywords: $
  6. //
  7. //===========================================================================//
  8. #ifndef _FOW_VS_FXC_H
  9. #define _FOW_VS_FXC_H
  10. #if ( FOW == 1 )
  11. float2 CalcFoWCoord( const float4 vFoWWorldSize, const float2 vWorldPos )
  12. {
  13. return ( vWorldPos - vFoWWorldSize.xy ) / vFoWWorldSize.zw;
  14. }
  15. #endif
  16. #endif // _FOW_VS_FXC_H