Rough approximation of PLUs using gl fog

This includes GLOBAL_NO_GL_TILESHADES fix from Fox

# Conflicts:
#	source/build/include/polymost.h
#	source/build/src/palette.cpp
#	source/build/src/polymer.cpp
#	source/build/src/polymost.cpp
#	source/build/src/polymost1Frag.glsl
This commit is contained in:
nukeykt 2019-10-29 23:01:30 +09:00 committed by Christoph Oelckers
parent 200cfa45f5
commit eea4fa80f1

View file

@ -81,6 +81,29 @@ int LoadPaletteLookups()
// origpalookup[i] = palookup[i];
bGreenPal = 0;
#ifdef USE_OPENGL
/*
// Very rough approximation...
palookupfogfactor[kPalNormal] = 1.f;
palookupfogfactor[kPalNoDim] = 0.f;
palookupfogfactor[kPalTorch] = 0.36f;
palookupfogfactor[kPalNoTorch] = 0.15f;
palookupfogfactor[kPalBrite] = 2.f;
palookupfogfactor[kPalRedBrite] = 0.36f;
palookupfog[kPalRedBrite] = { 248, 32, 0, 0 };
hicsetpalettetint(kPalRedBrite, 255, 255, 255, 248, 32, 0, 0);
palookupfog[kPalGreenBrite] = { 248, 32, 0, 0 };
palookupfogfactor[kPalGreenBrite] = 0.f;
hicsetpalettetint(kPalGreenBrite, 100, 200, 100, 0, 0, 0, 0);
palookupfogfactor[kPalNormal2] = 1.f;
palookupfogfactor[kPalNoDim2] = 0.f;
palookupfogfactor[kPalTorch2] = 0.36f;
palookupfogfactor[kPalNoTorch2] = 0.15f;
palookupfogfactor[kPalBrite2] = 2.f;
*/
#endif
}
return 1;