| ▲ | Jare 42 minutes ago | |||||||||||||||||||||||||
[Edit] ah ok they clarify later as a performance enhancement. I think it was pretty integral to the algorithm, but ok. Wait why do they say painter's algorithm. Comanche and other such voxel terrain engines went front to back and never had overdraw. | ||||||||||||||||||||||||||
| ▲ | s-macke 27 minutes ago | parent | next [-] | |||||||||||||||||||||||||
Author here. Yes, it is integral. I chose this approach to first show how to draw it from back to front, because the code is easier to understand this way. | ||||||||||||||||||||||||||
| ▲ | swiftcoder 38 minutes ago | parent | prev [-] | |||||||||||||||||||||||||
Reverse painters algorithm is still painters algorithm. You trade off the cost of a full screen clear before the frame, in return for eliminating overdraw | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||