diff --git a/resources/shaders/printbed.vs b/resources/shaders/printbed.vs index ac4763782..ee19098c1 100644 --- a/resources/shaders/printbed.vs +++ b/resources/shaders/printbed.vs @@ -1,12 +1,12 @@ #version 110 -attribute vec4 v_position; +attribute vec3 v_position; attribute vec2 v_tex_coords; varying vec2 tex_coords; void main() { - gl_Position = gl_ProjectionMatrix * gl_ModelViewMatrix * v_position; + gl_Position = gl_ModelViewProjectionMatrix * vec4(v_position, 1.0); tex_coords = v_tex_coords; }