pyropeter/mmb — Issue #15: Only draw surface blocks of chunks
Author: pyropeter
Created: 2011-12-17 01:20:16+00:00
State: open

Extend Chunk with new field `visible`.

Save the directions of visible surfaces of each chunk in the new field.

Rewrite `drawChunk` and `blockDrawDist` to use the hints:

* The checks of the position of each block relatively to the camera should be made per chunk instead.
* Remove `blockDrawDist`; there is no need to draw one whole block at a time. Instead draw all faces pointing in the same direction.
* `drawChunk` should be `drawSolidChunk`