istereo2

view sdr/test.v.glsl @ 7:a3c4fcc9f8f3

- started a goatkit UI theme - font rendering with drawtext and shaders - asset manager (only used by drawtext for now, will replace respath eventually)
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 24 Sep 2015 06:49:25 +0300
parents
children
line source
1 uniform mat4 matrix_modelview, matrix_projection, matrix_texture;
3 attribute vec4 attr_vertex, attr_color;
4 attribute vec2 attr_texcoord;
6 varying vec3 vpos;
7 varying vec4 var_color;
8 varying vec2 var_texcoord;
10 void main()
11 {
12 mat4 mvp = matrix_projection * matrix_modelview;
13 gl_Position = mvp * attr_vertex;
14 vpos = (matrix_modelview * attr_vertex).xyz;
15 var_color = attr_color;
16 var_texcoord = (matrix_texture * vec4(attr_texcoord, 0.0, 1.0)).xy;
17 }