/*=============================================================================
	UberPostprocessVertexShader.usf:
	Copyright 1998-2010 Epic Games, Inc. All Rights Reserved.
=============================================================================*/

float4 SceneCoordinateScaleBias;
float4 SceneCoordinate2ScaleBias;
void Main(
	float4 InPosition : POSITION,
	float2 InScreenUV : TEXCOORD0,
	out float4 OutScreenPosition : TEXCOORD0,
	out float4 OutFilterBufferUV : TEXCOORD1,
	out float4 OutPosition : POSITION
	)
{
	OutPosition = InPosition;								// Target position
	// Background position
	OutScreenPosition.xy = InPosition.xy;
	// full resolution
	OutFilterBufferUV.xy = InScreenUV;
	// half resolution
	OutFilterBufferUV.zw = InPosition.xy / InPosition.w * SceneCoordinateScaleBias.xy + SceneCoordinateScaleBias.wz;
	// quarter resolution
	OutScreenPosition.zw = InPosition.xy / InPosition.w * SceneCoordinate2ScaleBias.xy + SceneCoordinate2ScaleBias.wz;
}
