OpenGL-utility/examples/debug/shaders/vertexShader.vert

11 lines
186 B
GLSL
Raw Normal View History

2021-01-19 23:18:31 +00:00
#version 330 core
layout (location = 0) in vec3 aPos;
2021-01-20 15:51:55 +00:00
layout (location = 1) in vec3 aCol;
out vec3 oCol;
2021-01-19 23:18:31 +00:00
void main()
{
2021-01-20 15:51:55 +00:00
oCol = aCol;
2021-01-19 23:18:31 +00:00
gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0);
}