move shaders to files
This commit is contained in:
parent
16c0ce8fcc
commit
b0a3bc3f3d
4 changed files with 34 additions and 23 deletions
6
data/main.frag
Normal file
6
data/main.frag
Normal file
|
@ -0,0 +1,6 @@
|
|||
#version 460 core
|
||||
in vec3 ourColor;
|
||||
out vec4 FragColor;
|
||||
void main() {
|
||||
FragColor = vec4(ourColor, 1.0);
|
||||
}
|
8
data/main.vert
Normal file
8
data/main.vert
Normal file
|
@ -0,0 +1,8 @@
|
|||
#version 460 core
|
||||
layout(location = 0) in vec3 aPos;
|
||||
layout(location = 1) in vec3 aColor;
|
||||
out vec3 ourColor;
|
||||
void main() {
|
||||
gl_Position = vec4(aPos, 1.0);
|
||||
ourColor = aColor;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue