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.solid_color_vs =   
  7 
  8 "attribute vec3 Vertex;" + 
  9 "attribute vec3 Normal;" + 
 10 "attribute vec3 Texture;" + 
 11 
 12 // we can calculate this once per model to speed up processing done on the js side.
 13 "uniform mat4 modelViewProjMatrix;" +
 14 "uniform vec3 color;" +
 15 
 16 "void main(void){" + 
 17 
 18 // Assign so they aren't optimized out
 19 "  vec3 dummy = Normal;" +
 20 "	 gl_TexCoord[0] = vec4(Texture,1.0);" + 
 21 
 22 "  gl_FrontColor = vec4(color,1.0);" +
 23 "	 gl_Position =  modelViewProjMatrix * vec4(Vertex, 1.0);" +
 24 "}";
 25