2018-08-29 21:33:28 +00:00
|
|
|
#version 330 core
|
2018-08-30 21:38:58 +00:00
|
|
|
layout (location = 0) in vec2 aScreenCoords;
|
2018-08-29 21:33:28 +00:00
|
|
|
layout (location = 1) in vec2 aTexCoords;
|
|
|
|
|
|
|
|
out vec2 texCoords;
|
|
|
|
|
|
|
|
uniform mat4 transMatrix;
|
|
|
|
uniform mat4 orthoMatrix;
|
|
|
|
|
|
|
|
void main() {
|
2018-09-04 03:33:20 +00:00
|
|
|
gl_Position = orthoMatrix * transMatrix * vec4(aScreenCoords, 1.0, 1.0);
|
2018-08-29 21:33:28 +00:00
|
|
|
texCoords = aTexCoords;
|
|
|
|
}
|