istereo2
diff sdr/ui.v.glsl @ 6:3bccfc7d10fe
goatkit is drawing
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 23 Sep 2015 05:44:58 +0300 |
parents | |
children | a3c4fcc9f8f3 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/sdr/ui.v.glsl Wed Sep 23 05:44:58 2015 +0300 1.3 @@ -0,0 +1,15 @@ 1.4 +attribute vec4 attr_vertex, attr_color; 1.5 +attribute vec2 attr_texcoord; 1.6 + 1.7 +uniform mat4 matrix_modelview, matrix_projection; 1.8 + 1.9 +varying vec4 vcolor; 1.10 +varying vec2 vtexcoord; 1.11 + 1.12 +void main() 1.13 +{ 1.14 + mat4 mvp = matrix_projection * matrix_modelview; 1.15 + gl_Position = mvp * attr_vertex; 1.16 + vcolor = attr_color; 1.17 + vtexcoord = attr_texcoord; 1.18 +}