From a8ecb75b2d6db1921f1359b65283670eb9e26c4e Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Thu, 26 Jan 2023 01:58:23 +0100 Subject: [PATCH] Cleanup & refactor --- data/shader.frag | 9 --------- data/shader.vert | 16 ---------------- 2 files changed, 25 deletions(-) delete mode 100755 data/shader.frag delete mode 100755 data/shader.vert diff --git a/data/shader.frag b/data/shader.frag deleted file mode 100755 index fb8a76c..0000000 --- a/data/shader.frag +++ /dev/null @@ -1,9 +0,0 @@ -#version 330 core - -in vec4 color; -out vec4 out_frag_color; - -void main(void) -{ - out_frag_color = color; -} \ No newline at end of file diff --git a/data/shader.vert b/data/shader.vert deleted file mode 100755 index 588e6fa..0000000 --- a/data/shader.vert +++ /dev/null @@ -1,16 +0,0 @@ -#version 330 core - -uniform mat4 projection_matrix; -uniform mat4 model_matrix; -uniform mat4 view_matrix; - -layout(location=0) in vec3 in_position; -layout(location=1) in vec3 in_color; - -out vec4 color; - -void main(void) -{ - gl_Position = projection_matrix * view_matrix * model_matrix * vec4(in_position, 1); - color = vec4(1 * in_color.rgb, 1); -} \ No newline at end of file