1
0
Fork 0
forked from fte/fteqw

HL/Q1BSP: tag textures starting with "scroll" to be able to scroll.

This commit is contained in:
Marco Cawthorne 2024-11-12 02:42:57 -08:00
parent 4b943f9a9e
commit 22b1bb2d41

View file

@ -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) if (builtin)
Shader_DefaultScript(ps, shortname, builtin); Shader_DefaultScript(ps, shortname, builtin);
else else