3dphotoshoot

view sdr/vertex.glsl @ 24:2712c5da2e00

getting sensor input (hack)
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 16 Jun 2015 06:17:59 +0300
parents 4ca4e3c5a754
children ac80210d5fbe
line source
1 attribute vec4 attr_vertex, attr_texcoord, attr_color;
3 uniform mat4 matrix_modelview, matrix_projection, matrix_texture;
5 varying vec4 tex_coords, color;
7 void main()
8 {
9 mat4 mvp = matrix_projection * matrix_modelview;
10 gl_Position = mvp * attr_vertex;
11 tex_coords = matrix_texture * attr_texcoord;
12 color = attr_color;
13 }