Terrain rendering algorithm in less than 20 lines of code
I recently implemented the painters algorithm in a modern-ish way: using atomic ops in a compute shader. That's one of the rendering techniques for the terrain in https://github.com/kvark/vange-rs