istereo

view sdr/tunnel.v.glsl @ 29:fb4c9641059f

added more forgotten files
author John Tsiombikas <nuclear@mutantstargoat.com>
date Thu, 08 Sep 2011 08:31:15 +0300
parents
children 8dd271942543
line source
1 attribute vec4 attr_vertex, attr_color, attr_texcoord;
2 attribute vec4 attr_tangent;
3 attribute vec3 attr_normal;
5 uniform mat4 matrix_modelview, matrix_projection, matrix_texture;
6 uniform mat3 normmat;
7 uniform float t;
8 uniform vec4 light_pos;
10 varying vec3 vpos, normal, tangent;
11 varying vec4 tc;
12 varying vec3 lpos;
14 void main()
15 {
16 mat4 mvp = matrix_projection * matrix_modelview;
17 gl_Position = mvp * attr_vertex;
19 vpos = (matrix_modelview * attr_vertex).xyz;
21 normal = normmat * attr_normal;
22 tangent = normmat * attr_tangent.xyz;
24 lpos = (matrix_modelview * light_pos).xyz;
26 tc = matrix_texture * attr_texcoord;
27 }