Fix non compiling shader on mesa
This commit is contained in:
parent
6c3a5375d7
commit
e9e60339bf
@ -1,9 +1,10 @@
|
|||||||
#version 330 compatibility
|
#version 330
|
||||||
uniform sampler2D tex;
|
uniform sampler2D tex;
|
||||||
|
|
||||||
|
in vec2 uv;
|
||||||
out vec4 FragColor;
|
out vec4 FragColor;
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
FragColor = texture(tex, gl_TexCoord[0].xy);
|
FragColor = texture(tex, uv);
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
// Passthrough shader for drawQuad()
|
// Passthrough shader for drawQuad()
|
||||||
#version 330 compatibility
|
#version 330
|
||||||
|
|
||||||
|
in vec3 Position;
|
||||||
|
in vec2 Texcoord;
|
||||||
out vec2 uv;
|
out vec2 uv;
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
uv = gl_MultiTexCoord0.xy;
|
uv = Texcoord;
|
||||||
gl_Position = gl_Vertex;
|
gl_Position = vec4(Position, 1.);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user