vrshoot

diff sdr/font.v.glsl @ 0:b2f14e535253

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 01 Feb 2014 19:58:19 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/sdr/font.v.glsl	Sat Feb 01 19:58:19 2014 +0200
     1.3 @@ -0,0 +1,15 @@
     1.4 +uniform vec2 st_fbsize;
     1.5 +uniform mat4 st_world_matrix;
     1.6 +
     1.7 +attribute vec4 attr_vertex, attr_texcoord;
     1.8 +
     1.9 +varying vec2 texcoord;
    1.10 +
    1.11 +void main()
    1.12 +{
    1.13 +	vec4 pos = st_world_matrix * attr_vertex;
    1.14 +	pos.xy = (pos.xy / st_fbsize - 0.5) * 2.0;
    1.15 +
    1.16 +	gl_Position = pos;
    1.17 +	texcoord = attr_texcoord.st;
    1.18 +}