Chailotl / osuve

Open-Source Unity Voxel Engine
GNU General Public License v3.0
46 stars 9 forks source link

Lighting system #9

Open Chailotl opened 6 years ago

Chailotl commented 6 years ago

A lighting system is due, even if a simple lit/unlit sunlight.

A propagation-based cached lighting system is proposed, where light propagates from light sources and around objects, and is cached for performance. Blocks that are exposed to sky are given special sunlight lighting.

Bonus points for dynamic light sources that will likely be a second lighting layer on top of the static lighting layer.