vrshoot
view sdr/font.v.glsl @ 3:c179c72369be
rename candy->vr
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 03 Feb 2014 08:52:13 +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 }