mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Polymost shade table interpolation patch from Nuke.YKT
git-svn-id: https://svn.eduke32.com/eduke32@7650 1a8010ca-5511-0410-912e-c29ae57300e0 # Conflicts: # source/build/src/polymost.cpp
This commit is contained in:
parent
6db4ac3b01
commit
410da8a085
1 changed files with 8 additions and 4 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue