3dphotoshoot

view sdr/vertex.glsl @ 27:3d082c566b53

fixed all the bugs, pc version works
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 18 Jun 2015 04:32:25 +0300
parents d7fe157c402d
children
line source
1 attribute vec4 attr_vertex, attr_normal, attr_texcoord, attr_color;
3 uniform mat4 matrix_modelview, matrix_projection, matrix_texture;
4 uniform mat3 matrix_normal;
6 varying vec3 normal;
7 varying vec4 tex_coords, color;
9 void main()
10 {
11 mat4 mvp = matrix_projection * matrix_modelview;
12 gl_Position = mvp * attr_vertex;
13 tex_coords = matrix_texture * attr_texcoord;
14 color = attr_color;
15 normal = matrix_normal * attr_normal.xyz;
16 }