uiacceltk/hitchcock/backgroundanim/refplugin/data/refvertexshader.vsh
author hgs
Thu, 14 Oct 2010 18:35:08 +0300
changeset 60 5dafecb0892a
parent 0 15bf7259bb7c
permissions -rw-r--r--
201041

varying vec2  texCoord;
attribute vec4 vPosition;
uniform float aspect;

void main(void)
    {
    gl_Position = vPosition;
    texCoord = (vec2( gl_Position.x*aspect, - gl_Position.y ) + vec2( 1.0 ) ) / vec2( 2.0 );   
    }