I am trying to find an algorithm for 3D line segment rasterization. Bresenham's algorithm seems like it's almost what I want but it doesn't compute any Z values.
Does anyone know if there is a way to extend Bresenham's algorithm or maybe a different algorithm?