fix gitignore
This commit is contained in:
parent
69d7db83fa
commit
b3893d1587
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,6 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
/grk/project/shaders
|
|
||||||
|
|
||||||
/grk/.vs/grk-cw
|
/grk/.vs/grk-cw
|
||||||
/grk/project/Debug
|
/grk/project/Debug
|
8
grk/project/shaders/particle.frag
Normal file
8
grk/project/shaders/particle.frag
Normal 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);
|
||||||
|
}
|
14
grk/project/shaders/particle.vert
Normal file
14
grk/project/shaders/particle.vert
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user