flat_texture.vs 265 B

123456789101112131415
  1. #version 140
  2. uniform mat4 view_model_matrix;
  3. uniform mat4 projection_matrix;
  4. in vec3 v_position;
  5. in vec2 v_tex_coord;
  6. out vec2 tex_coord;
  7. void main()
  8. {
  9. tex_coord = v_tex_coord;
  10. gl_Position = projection_matrix * view_model_matrix * vec4(v_position, 1.0);
  11. }