istereo
view sdr/test.v.glsl @ 14:b39d8607f4bb
added textures
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Wed, 07 Sep 2011 09:03:51 +0300 |
parents | fe1cb1c567cc |
children | 889dade25667 |
line source
1 uniform mat4 matrix_modelview, matrix_projection;
3 attribute vec4 attr_vertex, attr_color;
4 attribute vec2 attr_texcoord;
6 varying vec4 var_color;
7 varying vec2 var_texcoord;
9 void main()
10 {
11 mat4 mvp = matrix_projection * matrix_modelview;
12 gl_Position = mvp * attr_vertex;
13 var_color = attr_color;
14 var_texcoord = attr_texcoord;
15 }