From 11379c6617602dbb8220fa83fcd544aaf94ab57d Mon Sep 17 00:00:00 2001 From: Hunter Kvalevog Date: Sat, 21 Feb 2026 21:34:50 -0600 Subject: shaders: Moved demos to https://fragcoord.xyz/u/kvog --- shaders/subpixel.cc | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 shaders/subpixel.cc (limited to 'shaders/subpixel.cc') diff --git a/shaders/subpixel.cc b/shaders/subpixel.cc deleted file mode 100644 index 73a5d51..0000000 --- a/shaders/subpixel.cc +++ /dev/null @@ -1,22 +0,0 @@ -#include "shaders.hh" - -static float u_quad[2] = { 256.0f, 2.0f }; - -static void ui() -{ - ImGui::SliderFloat("quad width", &u_quad[0], 1.0f, 512.0f); - ImGui::SliderFloat("quad height", &u_quad[1], 1.0f, 512.0f); -} - -static void uniforms(Shader* shader) -{ - GL(glUniform2fv(shader->get_required_uniform("u_quad"), 1, u_quad)); -} - -static Shader subpixel = { - .path = "subpixel.glsl", - .model = MODEL_QUAD, - .ui_fn = ui, - .uf_fn = uniforms, -}; -ENABLE_SHADER(subpixel); -- cgit v1.2.3