engineer-thesis-WUT/learnOpenGl/engine/Shaders/vertexShaderTexture.vs

16 lines
345 B
Plaintext
Raw Normal View History

2023-03-05 20:02:41 +01:00
#version 330 core
layout (location = 0) in vec3 aPos;
layout (location = 1) in vec3 aColor;
layout (location = 2) in vec2 aTexCoord;
out vec3 ourColor;
out vec2 TexCoord;
2023-03-19 13:53:13 +01:00
uniform float xOffset;
2023-03-05 20:02:41 +01:00
void main()
{
2023-03-19 13:53:13 +01:00
gl_Position = vec4(aPos.x + xOffset, aPos.y, aPos.z, 1.0);
2023-03-05 20:02:41 +01:00
ourColor = aColor;
2023-03-12 14:46:56 +01:00
TexCoord = vec2(aTexCoord.x, aTexCoord.y);
2023-03-05 20:02:41 +01:00
}