2018-02-13 14:27:16 +01:00
|
|
|
#version 330 core
|
|
|
|
|
2018-02-16 11:35:09 +01:00
|
|
|
in vec3 inVertex;
|
|
|
|
uniform mat4 uModelViewProj;
|
2018-02-13 14:27:16 +01:00
|
|
|
|
2018-02-16 11:35:09 +01:00
|
|
|
out vec2 ioUV;
|
2018-02-13 14:27:16 +01:00
|
|
|
|
|
|
|
void main() {
|
2018-02-16 11:35:09 +01:00
|
|
|
gl_Position = uModelViewProj * vec4(inVertex, 1);
|
|
|
|
ioUV = (inVertex.xy + vec2(1,1)) / 2.0;
|
2018-02-13 14:27:16 +01:00
|
|
|
}
|