Even drawing front-to-back you don't need the y-buffer, if you switch the loops: for x ... for y ...
Another trick I now remember was to interpolate the color values on such a y-segment, to reduce the pixelated look.
Another trick I now remember was to interpolate the color values on such a y-segment, to reduce the pixelated look.
https://www.pastiebin.com/5e10d48ac6595
Just exchange the Render() method in my VoxelSpace.html file with the pastie.