diff --git a/source/build/src/polymost.cpp b/source/build/src/polymost.cpp index ee05718dc..7ee4bb0cf 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -679,11 +679,13 @@ void polymost_npotEmulation(char npotEmulation, float factor, float xOffset) void polymost_shadeInterpolate(int32_t shadeInterpolate) { - if (currentShaderProgramID != polymost1CurrentShaderProgramID || shadeInterpolate == polymost1ShadeInterpolate) - return; - polymost1ShadeInterpolate = shadeInterpolate; - glUniform1f(polymost1ShadeInterpolateLoc, polymost1ShadeInterpolate); + if (currentShaderProgramID == polymost1CurrentShaderProgramID) + { + polymost1ShadeInterpolate = shadeInterpolate; + glUniform1f(polymost1ShadeInterpolateLoc, polymost1ShadeInterpolate); + } } + void polymost_setBrightness(int brightness){ if (currentShaderProgramID == polymost1CurrentShaderProgramID) { @@ -5424,6 +5426,8 @@ void polymost_drawrooms() gvisibility = ((float)globalvisibility)*FOGSCALE; + polymost_shadeInterpolate(r_shadeinterpolate); + //global cos/sin height angle if (r_yshearing) {