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.psys_vs = 
  7 
  8 "attribute vec3 Vertex;" + 
  9 "attribute vec2 Texture;" + 
 10 
 11 "uniform vec4 Color;" +
 12 "uniform mat4 modelViewProjMatrix;" +
 13 "uniform mat4 rot;" +
 14 
 15 "void main(void){" +
 16 
 17 "	gl_FrontColor = Color;" + 
 18 "	gl_Position = modelViewProjMatrix * vec4( Vertex, 1.0);" +
 19 "	gl_TexCoord[0] = rot * vec4(Texture.s - 0.5, Texture.t - 0.5, 1.0, 1.0);" + 
 20 " gl_TexCoord[0].s += 0.5;" +
 21 " gl_TexCoord[0].t += 0.5;" +
 22 "}";
 23