]> git.lizzy.rs Git - dragonblocks_alpha.git/blob - shaders/3d/vertex.glsl
5eccd55de0b1dc27a2d720a31f8eef70595ac557
[dragonblocks_alpha.git] / shaders / 3d / vertex.glsl
1 #version 330 core
2
3 layout(location = 0) in vec3 vertexPosition;
4 layout(location = 1) in vec2 vertexTextureCoords;
5 layout(location = 2) in vec3 vertexColor;
6
7 out vec2 fragmentTextureCoords;
8 out vec3 fragmentColor;
9
10 uniform mat4 model;
11 uniform mat4 view;
12 uniform mat4 projection;
13
14 void main()
15 {
16     gl_Position = projection * view * model * vec4(vertexPosition, 1.0);
17     fragmentTextureCoords = vertexTextureCoords;
18         fragmentColor = vertexColor;
19 }
20