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

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 );
}