1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Fix vignette and whitespace

This commit is contained in:
Gefüllte Taubenbrust 2024-12-01 12:11:29 +01:00
parent 364ca57819
commit f0407080ac
4 changed files with 6 additions and 13 deletions

View file

@ -625,11 +625,6 @@ secondstage_gamma (Gamma) float 1.6 1.0 5.0
# Requires: enable_post_processing
enable_color_grading (Color grading) bool false
# Apply vignette effect to darken the edges of the screen.
#
# Requires: enable_post_processing
enable_vignette (Vignette) bool false
# Apply dithering to reduce color banding artifacts.
# Dithering significantly increases the size of losslessly-compressed
# screenshots and it works incorrectly if the display or operating system

View file

@ -548,12 +548,10 @@ public:
float gamma = m_gamma;
m_gamma_pixel.set(&gamma, services);
if (g_settings->getBool("enable_vignette")) {
const Vignette &vignette_params = lighting.vignette;
m_vignette_dark_pixel.set(&vignette_params.dark, services);
m_vignette_bright_pixel.set(&vignette_params.bright, services);
m_vignette_power_pixel.set(&vignette_params.power, services);
}
if (g_settings->getBool("enable_color_grading")) {
const ColorDecisionList& cdl_params = lighting.cdl;