From 443c5aefca26cf0d0b2df8050aae6ce72f8f075d Mon Sep 17 00:00:00 2001 From: Hunter Kvalevog Date: Sun, 15 Feb 2026 11:07:23 -0600 Subject: shaders: Delete incomplete demos --- shaders/polygon.cc | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 shaders/polygon.cc (limited to 'shaders/polygon.cc') diff --git a/shaders/polygon.cc b/shaders/polygon.cc deleted file mode 100644 index c881475..0000000 --- a/shaders/polygon.cc +++ /dev/null @@ -1,27 +0,0 @@ -#include "shaders.hh" - -static int u_n = 3; -static float u_bg[4] = { 0, 0, 0, 1 }; -static float u_fg[4] = { 1, 1, 1, 1 }; - -static void ui() -{ - ImGui::SliderInt("N", &u_n, 3, 24); - ImGui::ColorPicker4("bg", u_bg); - ImGui::ColorPicker4("fg", u_fg); -} - -static void uniforms(Shader* shader) -{ - GL(glUniform1i(shader->get_required_uniform("u_n"), u_n)); - GL(glUniform4fv(shader->get_required_uniform("u_bg"), 1, u_bg)); - GL(glUniform4fv(shader->get_required_uniform("u_fg"), 1, u_fg)); -} - -static Shader polygon = { - .path = "polygon.glsl", - .model = MODEL_QUAD, - .ui_fn = ui, - .uf_fn = uniforms, -}; -ENABLE_SHADER(polygon); -- cgit v1.2.3