summaryrefslogtreecommitdiff
path: root/resources/shader.vertexshader
blob: 657053e091f34ee284c3d6f9d170bb6f087eb3c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#version 330 core

// Input vertex data, different for all executions of this shader.
layout(location = 0) in vec3 vertexPosition_modelspace;
layout(location = 1) in vec3 vertexColor;

uniform mat4 MVP;

out vec3 fragmentcolor;

void main() {

    gl_Position = MVP * vec4(vertexPosition_modelspace, 1);
    // gl_Position.w = 1.0;

    fragmentcolor = vertexColor;
}