libdragon
libdragon copied to clipboard
Shaded and flat triangles based on snacchus's guide
works on hardware (ntsc console). The values in rdp_enable_shading might not be perfect though (copied from a krom test and generated by online tool respectively).
I will review this as soon as possible. Did the color issue went away?
I will review this as soon as possible. Did the color issue went away?
I don't have another (easy) way to test. I would not be at all surprised if it is just my tv. I can post the rom from the above screenshot on discord if you want to run the same thing and see.
Closing this, because the unstable branch features a full implementation of RDP triangle drawing for all possibile formats (filled, shaded, textured, z-buffered), even with a RSP-accelerated ucode, that has been carefully tested to provide no seams. See rdpq_tri.h, which is part of the new rdpq
library.
The old rdp.h
library will be deprecated as soon as we start merging rdpq
(will do that piecewise), so we are not going to add new features to it.