aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-05-16 19:31:31 +0200
committerlonkaars <loek@pipeframe.xyz>2024-05-16 19:31:31 +0200
commit68081ef4f1f51b5753e25a1be6f870eb2e84f76e (patch)
treed251806a4c05543a1262ecd3b86d00e33708a506 /main.c
parentfe2d38b584e814ae6bb44e122ecec3d546976c8a (diff)
experiment with vertex shader
Diffstat (limited to 'main.c')
-rw-r--r--main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/main.c b/main.c
index 0ff0706..09cf2fb 100644
--- a/main.c
+++ b/main.c
@@ -6,14 +6,14 @@
#include "die.h"
#include "config.h"
-#include "hello_vert.h"
-#include "hello_frag.h"
+#include "fill_vert.h"
+#include "visuals_frag.h"
void prepare_tri() {
const float vertices[] = {
+ 0, 1, 0,
+ 1, -1, 0,
-1, -1, 0,
- 3, -1, 0,
- -1, 3, 0,
};
// initialize vertex {buffer,attribute} object buffers
@@ -59,8 +59,8 @@ int main(int argc, char** argv) {
// prepare shaders
GLuint shader = link_shaders(
- vert_shader(hello_vert, hello_vert_size),
- frag_shader(hello_frag, hello_frag_size)
+ vert_shader(fill_vert, fill_vert_size),
+ frag_shader(visuals_frag, visuals_frag_size)
);
// main draw loop