From 5ad1d74f622ae00b7253087c9f7c37231658746f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 12 Feb 2021 14:55:42 +0100 Subject: [PATCH] - added missing shader #define. --- wadsrc/static/shaders/glsl/func_paletted.fp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wadsrc/static/shaders/glsl/func_paletted.fp b/wadsrc/static/shaders/glsl/func_paletted.fp index 0b37ece06..2f86139e2 100644 --- a/wadsrc/static/shaders/glsl/func_paletted.fp +++ b/wadsrc/static/shaders/glsl/func_paletted.fp @@ -19,6 +19,7 @@ vec4 ProcessTexel() // z is the depth in view space, positive going into the screen float z = abs(pixelpos.w); +#ifdef NPOT_EMULATION // Coordinate adjustment for NPOT textures. It is somehow fitting that Build games exploited this texture wrapping quirk of the software rendering engine... if (uNpotEmulation.y != 0.0) { @@ -26,6 +27,7 @@ vec4 ProcessTexel() coordX += uNpotEmulation.x * floor(mod(coordY, uNpotEmulation.y)); coordY = period + mod(coordY, uNpotEmulation.y); } +#endif newCoord = vec2(coordX, coordY); color = texture(tex, newCoord);