printbed.vs 386 B

1234567891011121314
  1. #version 110
  2. attribute vec3 v_position;
  3. attribute vec2 v_tex_coords;
  4. varying vec2 tex_coords;
  5. void main()
  6. {
  7. gl_Position = gl_ModelViewProjectionMatrix * vec4(v_position.x, v_position.y, v_position.z, 1.0);
  8. // the following line leads to crash on some Intel graphics card
  9. //gl_Position = gl_ModelViewProjectionMatrix * vec4(v_position, 1.0);
  10. tex_coords = v_tex_coords;
  11. }