if anyone wants to fix a 'citation needed' on wiki, https://en.wikipedia.org/wiki/Scanline_rendering
there's no citation for an algorithm and the best one is probably someting like 'front to back display of bsp trees' https://ieeexplore.ieee.org/abstract/document/90569 which is also on archive.org heh