From 7a2b3ea8c13657ef697d0b4dc73ccada23f81039 Mon Sep 17 00:00:00 2001 From: pommicket Date: Thu, 3 Nov 2022 19:48:26 -0400 Subject: custom shader texture --- ted.cfg | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ted.cfg') diff --git a/ted.cfg b/ted.cfg index 0c142b1..4b815f6 100644 --- a/ted.cfg +++ b/ted.cfg @@ -42,6 +42,7 @@ regenerate-tags-if-not-found = yes # t_aspect - (window_width / window_height, 1) # t_time - current time in seconds, modulo 3600 # t_save_time - time since last save, in seconds. +# t_texture - a texture, made with your choice of image # 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() { @@ -51,6 +52,9 @@ regenerate-tags-if-not-found = yes # vec4 color = vec4(r, g, 1.0 - t_save_time, 0.2); # gl_FragColor = clamp(color, 0.0, 1.0); # }" +# here's an example using a texture: +# bg-texture = "/path/to/my/cool/picture.jpg" (or .png, .gif, .bmp) +# bg-shader = "void main() { gl_FragColor = texture2D(t_texture, t_pos) * vec4(1.0,1.0,1.0,0.2); }" [keyboard] # motion and selection -- cgit v1.2.3