summaryrefslogtreecommitdiff
path: root/src/light.cpp
Commit message (Collapse)AuthorAge
* Light curve: Simplify and improve code, fix darkened daytime sky (#7693)Vitaliy2018-09-16
|
* Update light decoding table size (#6696)Vitaliy2017-12-12
| | | | Fix old undiminish_light bug
* Light curve: Add and tune mid boost gaussianparamat2017-11-27
| | | | | | Create a closer match to the light curve of 0.4.16 stable. Results in darker shadows while maintaining the 'brightness' and light spread.
* Modernize various files (src/k*, src/l*)Loic Blot2017-08-18
| | | | | | | * range-based for loops * code style * C++ headers instead of C headers * Default operators
* New lighting curve (#5279)Vitaliy2017-08-17
| | | | | | | | * New lighting curve * Make polynomial lighting curve * Update default lighting settings
* Redo light.cpp.Auke Kok2016-12-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Change lower limit of display_gamma to 1.0 (linear light)Craig Robbins2015-05-11
| | | | Now matches function comment
* Add display_gamma option for clientCraig Robbins2014-12-31
|
* Update Copyright YearsSfan52013-02-24
|
* Change Minetest-c55 to MinetestPilzAdam2013-02-24
|
* Switch the license to be LGPLv2/later, with small parts still remaining as ↵Perttu Ahola2012-06-05
| | | | GPLv2/later, by agreement of major contributors
* Unrelated, but anyway: tune light levels againPerttu Ahola2012-03-27
|
* Modify light values to work a bit better with non-smooth lightingPerttu Ahola2012-02-05
|
* Set better visual light levelsPerttu Ahola2012-02-02
|
* tested out and commented out some new stuff for the terrain generator, to be ↵Perttu Ahola2011-04-26
| | | | used in the future.
* random code cleaning, shouldn't affect anythingPerttu Ahola2011-02-18
|
* all kinds of tweaking and fixingPerttu Ahola2011-02-04
|
* some tweakingPerttu Ahola2011-02-02
|
* day/night working client sidePerttu Ahola2010-12-19
|
* before daynight mesh cachePerttu Ahola2010-12-18
|
* before adding day/night lightingPerttu Ahola2010-12-18
| | | | | --HG-- rename : data/light.png => data/cloud.png
* working nicelyPerttu Ahola2010-12-13
|
* license stuffPerttu Ahola2010-11-29
| | | | | --HG-- rename : src/licensecomment.txt => licensecomment.txt
* Initial filesPerttu Ahola2010-11-27