summaryrefslogtreecommitdiff
path: root/ted.cfg
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-11-03 14:48:51 -0400
committerpommicket <pommicket@gmail.com>2022-11-03 14:48:51 -0400
commit809ce7cdc95cd602223333b53761735238b5b48a (patch)
tree59f2ddd7cfcad5deae31761284518829297c470f /ted.cfg
parent609cdb6f0cc9f6f5d86366fbf60364f463cba551 (diff)
custom bg-shader
Diffstat (limited to 'ted.cfg')
-rw-r--r--ted.cfg16
1 files changed, 16 insertions, 0 deletions
diff --git a/ted.cfg b/ted.cfg
index c7a08a7..0c142b1 100644
--- a/ted.cfg
+++ b/ted.cfg
@@ -36,6 +36,22 @@ tags-max-depth = 2
# regenerate tags if an identifier is not found (with Ctrl+click)?
regenerate-tags-if-not-found = yes
+# you can make your own custom background for ted using a shader.
+# an example is provided here. you will have access to the following variables:
+# t_pos - screen position of fragment (0,0) to (1,1)
+# t_aspect - (window_width / window_height, 1)
+# t_time - current time in seconds, modulo 3600
+# t_save_time - time since last save, in seconds.
+# if you want your shader supported no matter what, only use stuff from GLSL version 110.
+# on non-ancient computers, you should be able to use GLSL version 130.
+# bg-shader = "void main() {
+# vec2 p = t_pos * t_aspect;
+# float r = pow(sin(p.x * 100.0 + t_time * 3.0), 60.0);
+# float g = pow(sin(p.y * 100.0 + t_time * 6.0), 60.0);
+# vec4 color = vec4(r, g, 1.0 - t_save_time, 0.2);
+# gl_FragColor = clamp(color, 0.0, 1.0);
+# }"
+
[keyboard]
# motion and selection
Left = :left