2018-08-16 21:39:13 +00:00
|
|
|
#version 330 core
|
2018-08-27 21:45:24 +00:00
|
|
|
layout (location = 0) in vec4 aScreenCoords;
|
2018-08-16 21:39:13 +00:00
|
|
|
layout (location = 1) in vec2 aTexCoords;
|
|
|
|
|
|
|
|
out vec2 texCoords;
|
|
|
|
|
2018-08-27 21:45:24 +00:00
|
|
|
uniform mat4 orthoMatrix;
|
2018-08-16 21:39:13 +00:00
|
|
|
|
|
|
|
void main() {
|
2018-08-27 21:45:24 +00:00
|
|
|
gl_Position = orthoMatrix * aScreenCoords;
|
2018-08-16 21:39:13 +00:00
|
|
|
texCoords = aTexCoords;
|
|
|
|
}
|