2022-08-04 08:39:56 +00:00
|
|
|
#version 330 core
|
|
|
|
|
|
|
|
layout(location = 0) in vec3 pos;
|
2022-10-25 09:04:39 +00:00
|
|
|
layout(location = 1) in vec2 inTexCoord;
|
2022-08-04 08:39:56 +00:00
|
|
|
|
|
|
|
uniform mat4 vp;
|
|
|
|
uniform mat4 model;
|
|
|
|
|
2022-10-25 09:04:39 +00:00
|
|
|
out vec2 texCoord;
|
|
|
|
|
2022-08-04 08:39:56 +00:00
|
|
|
void main()
|
|
|
|
{
|
|
|
|
gl_Position = vp * model * vec4(pos, 1.0);
|
2022-10-25 09:04:39 +00:00
|
|
|
texCoord = inTexCoord;
|
2022-08-04 08:39:56 +00:00
|
|
|
}
|