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
25 lines
492 B
//========== 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
|