3 ms·
I was pulled in so many different directions, and basically stopped hacking on computer graphics. I guessed that the downfall of the approach would be the iter
by kazinator 11y ago
I was pulled in so many different directions, and basically stopped hacking on computer graphics.
I guessed that the downfall of the approach would be the iterations spent on the same pixel value in a texture, when, so to speak, Bresenham is "going vertical": marching through Y values while treading on the same X. If X is the texture space, it's wasteful. While rasterizing, it really behooves us to just map backwards from screen pixels, get the color value and move on. On the other hand, the approach could do anti-aliasing: average those values being tread over. That is usually solved with mipmapping, though: pre-filtered textures at multiple resolutions. Again: no iterative work per display pixel.