summaryrefslogtreecommitdiffstats
path: root/src/render/shaders/basic.vert
blob: 008f612b684ed15f1254c802f630c3fdd21af9c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#version 150

in vec3 vertexPosition;
in vec3 vertexColor;

out vec3 color;

void main()
{
    // Pass through the color to the fragment shader
    color = vertexColor;

    // Calculate the vertex position
    gl_Position = vec4( vertexPosition, 1.0 );
}