////////////////////////////////////////////////////////////////////////////////////////////////////
// Constants
////////////////////////////////////////////////////////////////////////////////////////////////////

static const float2 SD_HALF2 = float2( 0.5, 0.5 );

////////////////////////////////////////////////////////////////////////////////////////////////////
// Functions
////////////////////////////////////////////////////////////////////////////////////////////////////

float2 ApplyTexScale( float2 tex, float scale )
{
	return ( tex - SD_HALF2 ) * scale + SD_HALF2;
}