PixelGuys / Cubyz

Voxel sandbox game with a large render distance, procedurally generated content and some cool graphical effects.
GNU General Public License v3.0
434 stars 54 forks source link

Leaves Block Optimization #482

Closed ikabod-kee closed 3 months ago

ikabod-kee commented 3 months ago

LOD leaves use a different, opaque texture that allows better culling. Texture and properties of LOD state could be set using the json format, if that's not too expensive.

IntegratedQuantum commented 3 months ago

Instead of setting all the state for lod, it might also make sense to instead define a lod replacement block that gets used instead of the base block. With this we could for example also turn torches into air in lod.

ikabod-kee commented 3 months ago

LOD torches look ugly, so I am inclined to agree.