fvdhoef / vera-module

Versatile Embedded Retro Adapter
MIT License
107 stars 44 forks source link

Fix sprite rendering priority #11

Closed jburks closed 2 years ago

jburks commented 2 years ago

Fix for #10 : Don't overwrite existing pixel at same Z-depth.

jburks commented 2 years ago

Here's a sample before and after showing that prior to this fix some sprites were drawn over by a background "scoreboard" sprite at the same Z-depth but at a higher VRAM address. image

fvdhoef commented 2 years ago

Thanks! I don't have any hardware set up here to validate your work. But the fix seems ok and since you've tested it I will merge the pull request.