csinkers / ualbion

A remake of the 1995 RPG Albion (requires data from an install of the original game)
MIT License
133 stars 11 forks source link

Add 3D tile visibility detection and sorting #28

Open csinkers opened 3 years ago

csinkers commented 3 years ago

When rendering the extruded tilemap for a level, only the visible tiles should be rendered by the GPU to reduce wasted effort, overdraw etc. Additionally, tile instances should be sorted in near-to-far order for all fully opaque tiles, then far-to-near order for translucent tiles (but after opaque sprites have been drawn).