forked from chocolate-doom/chocolate-doom
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TrueColor: implement smoothest diminished lighting (#1220)
* Initial implementation * Done requested changes * Small comment corrections * Requested corrections * Enable smooth lighting by default for TrueColor * formulate smooth lighting values relative to Vanilla values * it's all about bit-shifting, right? * Let planes light be smooth The beauty of the formula! Most importantly, MAXLIGHTZ now have 8192 values, not 10240 as was planned initially, yet still producing nearly perfect smoothing. * Smoother lighting for Strife * Smooth/smoothest diminishing lighting for Heretic * Use I_Realloc for colormaps (re-)allocation Fixes problem with gamma-correction toggling and avoid dancing with malloc/free. Co-Authored-By: Fabian Greffrath <fabian@greffrath.com> * Smooth/smoothest diminishing lighting for Hexen * Fix torch glowing effect for smoothest lighting "1 << 3" is similar to logics of shifting amount of colormaps via "32 << 3". Not sure if it's 100% identical to vanilla approach, but seems to correct. * Make INVERSECOLORMAP macro again I.e. handle all possible player-fixedcolormap changes via rendering only. Co-Authored-By: Fabian Greffrath <fabian@greffrath.com> * Heretic: use INVERSECOLORMAP for invul colormap generating Co-Authored-By: Fabian Greffrath <fabian@greffrath.com> * Done requested changes --------- Co-authored-by: Fabian Greffrath <fabian@greffrath.com>
- Loading branch information
1 parent
3ddd6fd
commit e9c7b3d
Showing
29 changed files
with
426 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.