2022-02-11 21:24:15 +00:00
|
|
|
#version 460 core
|
|
|
|
layout (location=0) in vec3 aPos;
|
2022-02-12 20:38:31 +00:00
|
|
|
layout (location=2) in vec3 aColor;
|
|
|
|
layout (location=1) in vec2 aTexCoord;
|
2022-02-11 21:24:15 +00:00
|
|
|
|
|
|
|
uniform float HorizontalOffset;
|
|
|
|
|
2022-02-12 20:38:31 +00:00
|
|
|
uniform mat4 model;
|
|
|
|
uniform mat4 view;
|
|
|
|
uniform mat4 projection;
|
|
|
|
|
|
|
|
out vec2 TexCoord;
|
2022-02-11 21:24:15 +00:00
|
|
|
|
|
|
|
void main(){
|
|
|
|
|
2022-02-12 20:38:31 +00:00
|
|
|
gl_Position = projection * view * model * vec4(aPos , 1.0);
|
|
|
|
TexCoord = aTexCoord;
|
2022-02-11 21:24:15 +00:00
|
|
|
}
|