From 3a90d21661650f44f68df16d156d5e2690431693 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 19 Sep 2019 00:06:12 +0200 Subject: [PATCH] - consolidated the redundant texture coordinates. They were all the same, so no point recalculating them, the copies weren't even correct. --- source/build/src/polymost.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/build/src/polymost.cpp b/source/build/src/polymost.cpp index a71e4d339..a278ce7d1 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -985,7 +985,7 @@ void polymost_glinit() palettedColor.a = c_one-floor(color.r);\n\ color = mix(color, palettedColor, u_usePalette);\n\ \n\ - vec4 detailColor = texture2D(s_detail, gl_TexCoord[3].xy);\n\ + vec4 detailColor = texture2D(s_detail, newCoord);\n\ detailColor = mix(c_vec4_one, 2.0*detailColor, u_useDetailMapping*detailColor.a);\n\ color.rgb *= detailColor.rgb;\n\ \n\ @@ -1004,7 +1004,7 @@ void polymost_glinit() //float fogFactor = clamp(gl_FogFragCoord, fullbright, c_one);\n\ color.rgb = mix(gl_Fog.color.rgb, color.rgb, fogFactor);\n\ \n\ - vec4 glowColor = texture2D(s_glow, gl_TexCoord[4].xy);\n\ + vec4 glowColor = texture2D(s_glow, newCoord);\n\ color.rgb = mix(color.rgb, glowColor.rgb, u_useGlowMapping*glowColor.a*(c_one-u_useColorOnly));\n\ \n\ color.a *= v_color.a;\n\