//basic120.vs  zum alte Grafikkarten-Versionen unterstuetzen
#version 120

attribute vec3 a_position;
attribute vec3 a_normal;
//attribute vec3 a_tangent;
attribute vec2 a_tex_coord;

varying vec3 v_normal;
varying vec3 v_position;
varying vec2 v_tex_coord;
//varying mat3 v_tbn;

uniform mat4 u_modelViewProj;
uniform mat4 u_modelView;
uniform mat4 u_invModelView;

void main()
{
 gl_Position = u_modelViewProj * vec4(a_position, 1.0f);
 v_normal = mat3(u_invModelView) * a_normal;
 v_position = vec3(u_modelView * vec4(a_position, 1.0f));
 v_tex_coord = a_tex_coord;
}
