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.bounding_sphere_vs = 
  7 
  8 "attribute vec3 Vertex;" + 
  9 
 10 // calculate once in JS code instead of once per vertex.
 11 "uniform mat4 modelViewProjMatrix;" +
 12 
 13 "void main(void){" + 
 14 "  gl_FrontColor = vec4(0.0, 0.0, 0.0, 1.0);" +
 15 "  gl_Position =  modelViewProjMatrix * vec4(Vertex, 1.0);" +
 16 "}";
 17