2016-06-07 13:54:14 +00:00
|
|
|
#version 330 core
|
2016-09-23 08:02:53 +00:00
|
|
|
layout(location = 0) in vec4 data; // (vec2)pos, (vec2)texCoord
|
2016-06-07 13:54:14 +00:00
|
|
|
|
2016-06-09 05:49:03 +00:00
|
|
|
uniform mat4 projection;
|
2016-09-23 08:02:53 +00:00
|
|
|
out vec2 texCoord;
|
2016-06-09 05:49:03 +00:00
|
|
|
|
2016-06-07 13:54:14 +00:00
|
|
|
void main()
|
|
|
|
{
|
2016-09-23 08:02:53 +00:00
|
|
|
gl_Position = projection * vec4(data.xy, 0.0f, 1.0f);
|
2016-06-07 13:54:14 +00:00
|
|
|
texCoord = data.zw;
|
|
|
|
}
|