diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-11-04 00:50:45 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-11-18 15:21:48 +0100 |
commit | 23a37b2cdd8ffde8bb85a4159888bf3a7ec35966 (patch) | |
tree | 83db7b81936621b6a2435e9b5db0de18496cd12f /shaders | |
parent | fbd2e5d9a802db4fb5e056705ec599ac423e09be (diff) |
Use external shaders instead of generating shader code from c++ code...
Diffstat (limited to 'shaders')
-rw-r--r-- | shaders/fragment.frag | 8 | ||||
-rw-r--r-- | shaders/vertex.vert | 7 |
2 files changed, 15 insertions, 0 deletions
diff --git a/shaders/fragment.frag b/shaders/fragment.frag new file mode 100644 index 0000000..ea1ca7d --- /dev/null +++ b/shaders/fragment.frag @@ -0,0 +1,8 @@ +#version 330 core + +uniform vec3 triangle_color; +out vec4 out_color; + +void main() { + out_color = vec4(triangle_color, 1.0); +}
\ No newline at end of file diff --git a/shaders/vertex.vert b/shaders/vertex.vert new file mode 100644 index 0000000..d1cc433 --- /dev/null +++ b/shaders/vertex.vert @@ -0,0 +1,7 @@ +#version 330 core + +in vec2 position; + +void main() { + gl_Position = vec4(position, 0.0, 1.0); +}
\ No newline at end of file |