afonsolage / projekto

Voxel game made with Bevy Engine
MIT License
59 stars 4 forks source link

Implement lighting #29

Closed afonsolage closed 2 years ago

afonsolage commented 2 years ago

Implement voxel lighting based on fast flood fill propagation.

Here are two good articles wrote years ago by Benjamim from Seed of Andromeda:

The lighting data should be u8 for start, with 4 bits for natural light (sun/moon) and 4 bits for artificial light (torch/lamps/etc).