float4x4 _matrix; // to scale (down) area to process struct IN { float3 screenVertex : POSITION; float2 uv : TEXCOORD0; }; struct OUT { float4 position : POSITION; float2 uv : TEXCOORD0; }; OUT main(in IN input, uniform float4x4 projection) { OUT output; float4 pos = float4(input.screenVertex,1.0f); pos = mul (pos, _matrix); // scale vertex pos output.position = pos; output.uv = input.uv; return output; }