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 <a href="https://github.com/kvark/vange-rs" rel="nofollow">https://github.com/kvark/vange-rs</a>