1
0
mirror of https://github.com/moparisthebest/minetest synced 2025-03-09 22:29:41 -04:00
kwolekr 7233a1228e Lighting: Fix nearly all issues
The cause of a single light source seemingly being lit without spread
was due to its creation in the +Y mapblock boundary layer during map
generation, which was ignored as the overtop.  This overtop explicitly
needs to be omitted during sunlight propagation, however.  To accomplish
this, Mapgen::calcLighting() was split into separate functions taking
separate parameters.
Additionally, do not diminish light too early during spread.  This fixes the
output inconsistency between Map::updateLighting and Mapgen::calcLighting.
2015-01-04 02:42:31 -05:00
..
2013-03-05 23:54:07 -05:00
2014-06-29 18:17:56 +02:00
2015-01-04 02:42:31 -05:00
2015-01-04 05:21:59 +01:00
2014-08-22 22:03:08 +02:00
2013-09-15 23:00:01 -04:00
2014-10-28 15:37:58 -04:00
2013-02-24 20:15:24 +01:00
2014-10-29 01:56:37 -04:00
2014-06-09 08:18:33 +02:00
2013-02-24 20:15:24 +01:00
2013-02-24 20:15:24 +01:00
2013-02-24 20:15:24 +01:00
2013-02-24 20:15:24 +01:00
2013-02-24 20:15:24 +01:00
2013-02-24 20:15:24 +01:00
2014-09-21 21:02:49 -04:00
2013-02-24 20:15:24 +01:00
2014-06-29 18:17:56 +02:00
2014-11-30 18:06:54 +01:00
2014-11-30 17:50:09 +01:00
2013-02-24 20:15:24 +01:00
2013-02-24 20:15:24 +01:00
2014-11-30 17:50:09 +01:00
2014-11-19 16:21:59 -05:00
2014-11-30 18:06:54 +01:00
2014-11-30 17:50:09 +01:00
2013-02-24 20:15:24 +01:00
2014-01-13 18:11:08 -05:00
2013-12-13 18:05:35 +01:00
2014-12-05 16:09:53 +10:00
2014-11-30 18:06:54 +01:00
2014-11-19 16:21:59 -05:00
2014-11-19 16:21:59 -05:00
2014-11-19 16:21:59 -05:00
2013-02-24 20:15:24 +01:00
2013-02-24 20:15:24 +01:00
2013-02-24 20:15:24 +01:00
2013-02-24 20:15:24 +01:00
2013-07-20 20:37:59 +02:00
2014-06-29 18:17:56 +02:00
2014-12-31 02:44:31 +10:00
2014-12-31 02:44:31 +10:00
2013-02-24 20:15:24 +01:00
2013-02-24 20:15:24 +01:00
2014-12-29 01:31:37 -05:00
2014-12-12 20:46:37 +10:00
2013-02-24 20:15:24 +01:00
2015-01-04 02:42:31 -05:00
2015-01-04 02:42:31 -05:00
2015-01-04 02:42:31 -05:00
2015-01-04 02:42:31 -05:00
2015-01-04 02:42:31 -05:00
2014-12-31 02:44:31 +10:00
2013-02-24 20:15:24 +01:00
2013-02-24 20:15:24 +01:00
2014-06-29 18:17:56 +02:00
2014-12-16 20:33:54 +10:00
2014-12-15 13:52:10 -05:00
2014-12-08 00:01:22 +10:00
2013-02-24 20:15:24 +01:00
2014-11-19 16:21:59 -05:00
2014-11-19 16:21:59 -05:00
2014-11-19 16:21:59 -05:00
2014-09-20 14:02:54 -04:00
2014-12-30 12:30:42 -05:00
2014-06-15 05:40:33 +02:00
2014-10-19 15:33:08 +02:00
2013-02-24 20:15:24 +01:00
2013-02-24 20:15:24 +01:00
2013-02-24 20:15:24 +01:00
2014-10-28 15:37:58 -04:00
2013-02-24 20:15:24 +01:00
2013-09-15 23:00:01 -04:00
2014-07-02 16:48:11 +02:00
2014-12-23 01:09:50 -05:00