cursortrail.vsh 279 B

123456789101112131415
  1. #version 110
  2. uniform float time;
  3. varying vec2 tex_coord;
  4. varying float vtx_alpha;
  5. void main()
  6. {
  7. gl_Position = gl_ModelViewProjectionMatrix * vec4(gl_Vertex.x, gl_Vertex.y, 0.0, 1.0);
  8. gl_FrontColor = gl_Color;
  9. tex_coord = gl_MultiTexCoord0.xy;
  10. vtx_alpha = gl_Vertex.z;
  11. }