mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
The near ground was drawn from the top of each column, with the blocks raised above it, so overhangs, the wood under leaves and anything beside a trunk were lost. The server now finds, for each chunk it generates, every block the open air reaches: from the top of the chunk and from beside it above the terrain around, through leaves and water too, so caves closed to the sky stay out. Each block comes with the sides that face that air. Tiles a block a column carry these blocks when asked, and the studio draws each from its model, leaving out a face its model lets a neighbour hide unless that side faces the air. Blocks without a model are cubes of their look or colour; water shows the sides that face the air, and none against plants that grow in it.