From 6908e5fd3fcbc8515213b9f865afdcba3118491b Mon Sep 17 00:00:00 2001 From: gm-matthew <108370479+gm-matthew@users.noreply.github.com> Date: Fri, 2 Aug 2024 17:20:23 +0100 Subject: [PATCH] Step15Luminous() applies to all polys, not just textured ones --- Src/Graphics/New3D/R3DShaderCommon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Graphics/New3D/R3DShaderCommon.h b/Src/Graphics/New3D/R3DShaderCommon.h index 108bdd5..310d774 100644 --- a/Src/Graphics/New3D/R3DShaderCommon.h +++ b/Src/Graphics/New3D/R3DShaderCommon.h @@ -275,7 +275,7 @@ void Step15Luminous(inout vec4 colour) // when fixed shading is enabled the colour is modulated by the vp ambient + fixed shade value // when disabled it appears to be multiplied by 1.5, presumably to allow a higher range if(hardwareStep==0x15) { - if(!lightEnabled && textureEnabled) { + if(!lightEnabled) { if(fixedShading) { colour.rgb *= 1.0 + fsFixedShade + lighting[1].y; }