summaryrefslogtreecommitdiff
path: root/shaders/subpixel.cc
diff options
context:
space:
mode:
authorHunter Kvalevog <hunter@kvog.sh>2026-02-21 21:34:50 -0600
committerHunter Kvalevog <hunter@kvog.sh>2026-02-21 21:34:50 -0600
commit11379c6617602dbb8220fa83fcd544aaf94ab57d (patch)
tree9239184101406878478ccfd11ecc68d94b56fe79 /shaders/subpixel.cc
parentf7495d74d13d2fdf616bed25cb1d39d69243559d (diff)
shaders: Moved demos to https://fragcoord.xyz/u/kvog
Diffstat (limited to 'shaders/subpixel.cc')
-rw-r--r--shaders/subpixel.cc22
1 files changed, 0 insertions, 22 deletions
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);