Moved shaders to separate files
This commit is contained in:
parent
b09dbb4804
commit
c3517b596f
5
res/shaders/fragment.glsl
Normal file
5
res/shaders/fragment.glsl
Normal file
@ -0,0 +1,5 @@
|
||||
#version 330 core
|
||||
out vec4 FragColor;
|
||||
void main() {
|
||||
FragColor = vec4(1.0f, 0.5f, 0.2f, 1.0f);
|
||||
}
|
6
res/shaders/vertex.glsl
Normal file
6
res/shaders/vertex.glsl
Normal file
@ -0,0 +1,6 @@
|
||||
#version 330 core
|
||||
layout (location = 0) in vec3 aPos;
|
||||
|
||||
void main() {
|
||||
gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0);
|
||||
}
|
Loading…
Reference in New Issue
Block a user