diff --git a/data/shaders/pass.frag b/data/shaders/pass.frag index 327fcdffc..e5b1e7c69 100644 --- a/data/shaders/pass.frag +++ b/data/shaders/pass.frag @@ -1,9 +1,10 @@ -#version 330 compatibility +#version 330 uniform sampler2D tex; +in vec2 uv; out vec4 FragColor; void main() { - FragColor = texture(tex, gl_TexCoord[0].xy); + FragColor = texture(tex, uv); } diff --git a/data/shaders/pass.vert b/data/shaders/pass.vert index f2003abef..4c495e0a7 100644 --- a/data/shaders/pass.vert +++ b/data/shaders/pass.vert @@ -1,9 +1,11 @@ // Passthrough shader for drawQuad() -#version 330 compatibility +#version 330 +in vec3 Position; +in vec2 Texcoord; out vec2 uv; void main() { - uv = gl_MultiTexCoord0.xy; - gl_Position = gl_Vertex; + uv = Texcoord; + gl_Position = vec4(Position, 1.); }