Skip to content

How does the lighting engine work? #101

Answered by zesterer
Ultra-Gato asked this question in Q&A
Discussion options

You must be logged in to vote

The world can be many kilometres high, yes. The maximum bounds of a chunk are also very large. However, most chunks have a bound that sits far below the upper limit. We achieve this by giving each chunk:

  1. A variable height by composing it out of many 'sub-chunks'
  2. A vertical offset from the origin

With this strategy, we're able to place chunks at almost any position in the vertical axis without incurring any substantial overhead.

Very tall (i.e: where the distance between the lowest and highest blocks is large) chunks do incur a slightly larger overhead for lighting, and indeed it is possible (using build mode) to create very tall chunks indeed, which can take a long time to calculate lig…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Ultra-Gato
Comment options

Answer selected by Ultra-Gato
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants