1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-20 04:26:03 +08:00
Files
hl2sdk/materialsystem/stdshaders/fow_vs_fxc.h

26 lines
517 B
C
Raw Normal View History

2012-07-06 20:35:59 -05:00
//========== Copyright (c) Valve Corporation, All rights reserved. ==========//
//
// Purpose: This is where all common code for vertex shaders go.
//
// $NoKeywords: $
//
//===========================================================================//
#ifndef _FOW_VS_FXC_H
#define _FOW_VS_FXC_H
#if ( FOW == 1 )
float2 CalcFoWCoord( const float4 vFoWWorldSize, const float2 vWorldPos )
{
return ( vWorldPos - vFoWWorldSize.xy ) / vFoWWorldSize.zw;
}
#endif
#endif // _FOW_VS_FXC_H