fix gitignore

This commit is contained in:
Pawel Felcyn 2024-02-02 21:31:27 +01:00
parent 69d7db83fa
commit b3893d1587
3 changed files with 22 additions and 3 deletions

3
.gitignore vendored
View File

@ -1,6 +1,3 @@
 
/grk/project/shaders
/grk/.vs/grk-cw /grk/.vs/grk-cw
/grk/project/Debug /grk/project/Debug

View File

@ -0,0 +1,8 @@
#version 330 core
out vec4 FragColor;
in vec3 vertexColor;
void main() {
FragColor = vec4(vertexColor.r, vertexColor.g, vertexColor.b, 1.0);
}

View File

@ -0,0 +1,14 @@
#version 330 core
layout (location = 0) in vec3 inPosition;
out vec3 vertexColor;
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
uniform vec3 color;
void main() {
gl_Position = projection * view * model * vec4(inPosition, 1.0);
vertexColor = color;
}