From e1a5f61f8c695c8fb29326e263ac8779cfd7ccf4 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 13 Sep 2021 21:13:16 +0200 Subject: [PATCH] - fixed: shaders with NO_LAYERS defined may not apply brightmap and glowmap. These are undefined for such fragments. --- wadsrc/static/shaders/glsl/main.fp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wadsrc/static/shaders/glsl/main.fp b/wadsrc/static/shaders/glsl/main.fp index 009427dd2..bc2f84ea7 100644 --- a/wadsrc/static/shaders/glsl/main.fp +++ b/wadsrc/static/shaders/glsl/main.fp @@ -1,4 +1,5 @@ + layout(location = 0) in vec4 vTexCoord; layout(location = 1) in vec4 vColor; layout(location = 2) in vec4 pixelpos; @@ -628,7 +629,7 @@ vec4 getLightColor(Material material, float fogdist, float fogfactor) color = min(color, 1.0); // these cannot be safely applied by the legacy format where the implementation cannot guarantee that the values are set. -#ifndef LEGACY_USER_SHADER +#if !defined LEGACY_USER_SHADER && !defined NO_LAYERS // // apply glow //