From 22b1bb2d41b57dd1d0e67a26e1bb882eaf3aa6d9 Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Tue, 12 Nov 2024 02:42:57 -0800 Subject: [PATCH] HL/Q1BSP: tag textures starting with "scroll" to be able to scroll. --- engine/gl/gl_shader.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/engine/gl/gl_shader.c b/engine/gl/gl_shader.c index eb6fe31ed..c44f7e861 100644 --- a/engine/gl/gl_shader.c +++ b/engine/gl/gl_shader.c @@ -7166,6 +7166,16 @@ void Shader_DefaultBSPQ1(parsestate_t *ps, const char *shortname, const void *ar ); } + /* Half-Life requirement ~eukara */ + if (!builtin && !strncmp(shortname, "scroll", 6)) + { + builtin = ( + "{\n" + "fte_program defaultwall#SCROLL\n" + "}\n" + ); + } + if (builtin) Shader_DefaultScript(ps, shortname, builtin); else