nuclear@25: attribute vec4 attr_vertex, attr_normal, attr_texcoord, attr_color; nuclear@21: nuclear@21: uniform mat4 matrix_modelview, matrix_projection, matrix_texture; nuclear@25: uniform mat3 matrix_normal; nuclear@21: nuclear@25: varying vec3 normal; nuclear@22: varying vec4 tex_coords, color; nuclear@21: nuclear@21: void main() nuclear@21: { nuclear@21: mat4 mvp = matrix_projection * matrix_modelview; nuclear@21: gl_Position = mvp * attr_vertex; nuclear@21: tex_coords = matrix_texture * attr_texcoord; nuclear@22: color = attr_color; nuclear@25: normal = matrix_normal * attr_normal.xyz; nuclear@21: }