54b63a85a6
Adjust ShaderManager to load the 1.40 versions when GLSL 1.40 is supported.
17 lines
289 B
GLSL
17 lines
289 B
GLSL
#version 140
|
|
|
|
uniform mat4 projection;
|
|
|
|
// offset of the window/texture to be rendered
|
|
uniform vec2 offset;
|
|
|
|
in vec4 vertex;
|
|
in vec2 texCoord;
|
|
|
|
out vec2 varyingTexCoords;
|
|
|
|
void main()
|
|
{
|
|
varyingTexCoords = texCoord;
|
|
gl_Position = projection * vec4(vertex.xy + offset, vertex.zw);
|
|
}
|