You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
289 B
Plaintext

#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);
}