Lighting

The last two weeks were focused on adding (part of) the world lighting to Staxel. It does this by doing two phases of raycasting, first it throws 24 length rays, if they hit something before being 16 long it doesn’t contribute light and if its longer than 24 it contributes full light to the source. The second phase casts 8 long rays which also takes into account the coloring of the blocks the light bounces against. It will need many more tweaks in the future but for now i think it looks fine 🙂