//
//  Shader.vsh
//  NeoGeo
//
//  Created by dotemu on 30/01/12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

precision highp float;

uniform vec2 textureSize;
uniform vec2 sourceSize;
uniform vec2 screenSize;

attribute vec4 position;
attribute vec4 texcoord;

varying vec4 texCoordVarying;
varying vec2 screenPos;

void main()
{
    gl_Position = position;
    texCoordVarying = texcoord;
    screenPos = (((position.xy + vec2(1.0, 1.0)) * 0.5) * screenSize) + vec2(0.25, 0.25);
}
