vrshoot

view 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 source
1 uniform vec2 st_fbsize;
2 uniform mat4 st_world_matrix;
4 attribute vec4 attr_vertex, attr_texcoord;
6 varying vec2 texcoord;
8 void main()
9 {
10 vec4 pos = st_world_matrix * attr_vertex;
11 pos.xy = (pos.xy / st_fbsize - 0.5) * 2.0;
13 gl_Position = pos;
14 texcoord = attr_texcoord.st;
15 }