diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-05-16 19:31:31 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-05-16 19:31:31 +0200 |
commit | 68081ef4f1f51b5753e25a1be6f870eb2e84f76e (patch) | |
tree | d251806a4c05543a1262ecd3b86d00e33708a506 /main.c | |
parent | fe2d38b584e814ae6bb44e122ecec3d546976c8a (diff) |
experiment with vertex shader
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |