Line rasterisation: Cover all pixels, regardless of line gradient?

前端 未结 6 2110
南笙
南笙 2020-12-25 13:30

Basically, I want to use a line algo to determine which cells to check for collisions for my raycaster.

Bresenham isn\'t great for this as it uses a unified-thicknes

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-25 14:20

    There is an interesting article available in GPU Gems, maybe it can help you: Chapter 22. Fast Prefiltered Lines

提交回复
热议问题