OpenGL-utility/examples/debug/shaders/vertexShader.vert
2021-01-21 12:07:43 +01:00

14 lines
No EOL
247 B
GLSL

#version 330 core
layout (location = 0) in vec3 aPos;
layout (location = 1) in vec3 aCol;
layout (location = 2) in vec2 aUV;
out vec3 oCol;
out vec2 oUV;
void main()
{
oCol = aCol;
oUV = aUV;
gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0);
}