2
0

line_vert.glsl 299 B

123456789101112131415
  1. precision highp float;
  2. attribute vec3 a_position;
  3. attribute vec3 a_color;
  4. varying vec3 v_color;
  5. uniform mat4 u_modelViewMatrix;
  6. uniform mat4 u_projectionMatrix;
  7. void main(void) {
  8. vec4 pos = u_modelViewMatrix * vec4(a_position,1.0);
  9. v_color = a_color;
  10. gl_Position = u_projectionMatrix * pos;
  11. }