zml2008/Glowstone — Issue #1: Implement lighting
Author: zml2008
Created: 2011-11-11 21:08:59+00:00
State: open

This info from Stormx2 may be useful:
[12:40:47] hey guys, I want to check my understanding of lighting is correct:
[12:41:09] Sky Light sets all transparent columns (glass or air) from sky limit downwards to level 15
[12:41:31] And then passes over adjacent blocks decreasing the light level by 1 each time, taking the maximum each time.
[12:42:14] Block light works in a similar way, but instead initialisalises blocks based on whether they emit light (torches, etc)
[12:42:54] Opaque blocks accept lighting from an adjacent air block (themselves having air block light - 1) but do not pass on light to their neighbours
[12:43:10] semitransparent blocks *do* pass on light to their neighbours, but affect it by more than 1.
[12:43:44] is that right?
[12:48:25] --> nevyn^ (~nevyn@c213-89-21-34.bredband.comhem.se) has joined #mcdevs
[12:52:39] Stormx2: Yeah, largely.
[12:53:41] anything wrong?
[12:53:42] haha
[12:54:31] Well, there's a couple Notchian bugs, but they're not interesting.
[12:55:17] They might be - I'm having to keep the lighting faithful for a couple of important reasons.
[12:56:47] They *really* aren't interesting and they don't affect the rendering.
[12:57:43] okay, cool
[12:57:44] cheers