/*

   Overscan Shader

   Copyright (C) 2018 SimoneT - simone1tarditi@gmail.com
   Copyright (C) 2018 guest(r) - guest.r@gmail.com

   This program is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public License
   as published by the Free Software Foundation; either version 3
   of the License, or (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

*/

#version 130

uniform vec4 OGL2Size;
uniform vec4 OGL2InvSize;
uniform vec4 OGL2Param;

void main()
{

	float OverscanX = 1.0;  //horizontal overscan/underscan, larger values increase X overscan
	float OverscanY = 1.09; //vertical overscan/underscan, larger values increase Y overscan
	float Zoom = 1.0;       //whole "image" zoom, lower values enlarge (zoom in), larger zoom out

	gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex * vec4( OverscanX, OverscanY, 1.0, Zoom);

	gl_TexCoord[0] = gl_MultiTexCoord0;

}