3dphotoshoot

annotate sdr/vertex.glsl @ 25:ac80210d5fbe

preparing a pc version for easier development of non-android-specifics
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 18 Jun 2015 03:12:30 +0300
parents d7fe157c402d
children
rev   line source
nuclear@25 1 attribute vec4 attr_vertex, attr_normal, attr_texcoord, attr_color;
nuclear@21 2
nuclear@21 3 uniform mat4 matrix_modelview, matrix_projection, matrix_texture;
nuclear@25 4 uniform mat3 matrix_normal;
nuclear@21 5
nuclear@25 6 varying vec3 normal;
nuclear@22 7 varying vec4 tex_coords, color;
nuclear@21 8
nuclear@21 9 void main()
nuclear@21 10 {
nuclear@21 11 mat4 mvp = matrix_projection * matrix_modelview;
nuclear@21 12 gl_Position = mvp * attr_vertex;
nuclear@21 13 tex_coords = matrix_texture * attr_texcoord;
nuclear@22 14 color = attr_color;
nuclear@25 15 normal = matrix_normal * attr_normal.xyz;
nuclear@21 16 }