1 /* 2 Copyright (c) 2008 Seneca College 3 Licenced under the MIT License (http://www.c3dl.org/index.php/mit-license/) 4 */ 5 6 c3dl.line_vs = 7 8 "attribute vec3 Vertex;" + 9 "attribute vec3 Color;" + 10 11 "uniform mat4 modelViewProjMatrix;" + 12 13 "void main(void)" + 14 "{" + 15 " gl_FrontColor = vec4(Color,1.0);" + 16 " gl_Position = modelViewProjMatrix * vec4(Vertex, 1.0);" + 17 "}"; 18