- had a look at Exhumed's shade tables and implemented the necessary adjustments for the 3 with abnormal gradients.

This commit is contained in:
Christoph Oelckers 2019-12-31 22:53:03 +01:00
parent f106505344
commit 3d47652d08
3 changed files with 9 additions and 21 deletions

View file

@ -50,6 +50,7 @@
#include "gl_renderer.h"
extern int xdim, ydim;
float shadediv[MAXPALOOKUPS];
FileReader GetResource(const char* fn)
{
@ -511,6 +512,7 @@ void GLInstance::SetPalette(int index)
void GLInstance::SetPalswap(int index)
{
palmanager.BindPalswap(index);
renderState.ShadeDiv = shadediv[index] == 0 ? 1.f / (renderState.NumShades) : shadediv[index];
}
void GLInstance::DrawImGui(ImDrawData* data)