aboutsummaryrefslogtreecommitdiff
path: root/src/light.cpp
AgeCommit message (Collapse)Author
2020-08-23Fix light overflow of u8 if light is saturated at 255 (#10305)BenjaminRi
2019-10-24Improve light curve parameter limits and documentation (#9054)Paramat
Revert gamma upper limit to 3.0 because that was raised based on a misunderstanding and had no benefit. A sane upper limit is needed as players on a competitive server tend to use the maximum. Set gamma lower limit to 0.33 for consistency with 3.0. Set sane limits on alpha, beta, boost and enforce these in code to limit values entered in minetest.conf and to avoid easy cheating by editing settingtypes.txt. Improve documentation and 'readable' setting names. Clarify that gamma does not significantly affect natural night light. light.cpp: Various codestyle and comment improvements.
2019-06-27Increase upper limit of display_gamma to 10 (#8618)ANAND
2018-09-16Light curve: Simplify and improve code, fix darkened daytime sky (#7693)Vitaliy
2017-12-12Update light decoding table size (#6696)Vitaliy
Fix old undiminish_light bug
2017-11-27Light curve: Add and tune mid boost gaussianparamat
Create a closer match to the light curve of 0.4.16 stable. Results in darker shadows while maintaining the 'brightness' and light spread.
2017-08-18Modernize various files (src/k*, src/l*)Loic Blot
* range-based for loops * code style * C++ headers instead of C headers * Default operators
2017-08-17New lighting curve (#5279)Vitaliy
* New lighting curve * Make polynomial lighting curve * Update default lighting settings
2016-12-28Redo light.cpp.Auke Kok
Remake the light_decode_table. The table starts out without pre-filled in values since those are always discarded by the code apparently. We calculate a pseudo curve with gamma power function, and then apply a new adjustment table. The adjustment table is setup to make the default gamma of 2.2 look decent: not too dark at light level 3 or so, but too dark at 1 and below to be playable. The curve is much smoother than before and looks reasonable at the whole range, offering a pleasant decay of light levels away from lights. The `display_gamma` setting now actually does something logical: the game is darker at values below 2.2, and brighter at values above 2.2. At 3.0, the game is very bright, but still has a good light scale. At 1.1 or so, the bottom 5 light levels are virtually black, but you can still see enough detail at light levels 7-8, so the range and spread is adequate. I must add that my monitor is somewhat dark to begin with, since I have a `hc` screen that doesn't dynamic range colors or try to pull up `black` pixels for me (it is tuned for accurate color and light levels), so this should look even better on more dynamic display tunings.
2015-05-11Change lower limit of display_gamma to 1.0 (linear light)Craig Robbins
Now matches function comment
2014-12-31Add display_gamma option for clientCraig Robbins
2013-02-24Update Copyright YearsSfan5
2013-02-24Change Minetest-c55 to MinetestPilzAdam
2012-06-05Switch the license to be LGPLv2/later, with small parts still remaining as ↵Perttu Ahola
GPLv2/later, by agreement of major contributors
2012-03-27Unrelated, but anyway: tune light levels againPerttu Ahola
2012-02-05Modify light values to work a bit better with non-smooth lightingPerttu Ahola
2012-02-02Set better visual light levelsPerttu Ahola
2011-04-26tested out and commented out some new stuff for the terrain generator, to be ↵Perttu Ahola
used in the future.
2011-02-18random code cleaning, shouldn't affect anythingPerttu Ahola
2011-02-04all kinds of tweaking and fixingPerttu Ahola
2011-02-02some tweakingPerttu Ahola
2010-12-19day/night working client sidePerttu Ahola
2010-12-18before daynight mesh cachePerttu Ahola
2010-12-18before adding day/night lightingPerttu Ahola
--HG-- rename : data/light.png => data/cloud.png
2010-12-13working nicelyPerttu Ahola
2010-11-29license stuffPerttu Ahola
--HG-- rename : src/licensecomment.txt => licensecomment.txt
2010-11-27Initial filesPerttu Ahola