3 ms·
> - Since sorting sprites is O(N^2), I figured out a way to create a depth map for each sprite to depth sort on the GPU Could you elaborate on this some more?
by treyd 1y ago
> - Since sorting sprites is O(N^2), I figured out a way to create a depth map for each sprite to depth sort on the GPU
Could you elaborate on this some more? This seems very interesting.
- YesBox 1y agoSee my other comment in this thread. The solution I went for was drawing a 3D box (in 2D space, i.e. in the sprite sheet over each sprite), and then using that box to calculate the local depth within the "diamond"/isometric space is occupies (er, hope that makes sense!)