From eea4fa80f1eb22cd07adfc816c2d1de04f22dd46 Mon Sep 17 00:00:00 2001 From: nukeykt Date: Tue, 29 Oct 2019 23:01:30 +0900 Subject: [PATCH] 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 --- source/exhumed/src/light.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/source/exhumed/src/light.cpp b/source/exhumed/src/light.cpp index cc97f22be..8271a75d9 100644 --- a/source/exhumed/src/light.cpp +++ b/source/exhumed/src/light.cpp @@ -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;