GLWidget/GLWidgetTestGTK3/Shaders/VertexShader.glsl
2020-09-03 16:25:24 +00:00

14 lines
305 B
GLSL

#version 330 core
layout(location = 0) in vec3 vertexPosition_modelSpace;
layout(location = 1) in vec3 vertexColour;
uniform mat4 ModelViewProjection;
out vec3 fragmentColour;
void main()
{
gl_Position = ModelViewProjection * vec4(vertexPosition_modelSpace, 1.0);
fragmentColour = vertexColour;
}