simple triangle renderer
- 1 Devlogs
- 3 Total hours
a basic triangle renderer in p5.js (I know p5 has inbuilt 3d rendering, but I wanted to make a renderer). The renderer uses a frustum and point projection method, but instead of having a z-buffer for every pixel to display the correct colour when two triangles overlap, the area of the screen covered by each triangle is stored, and reduced using an ear-clipping algorithm if another triangle partly covers it. I had been working on this project for a while before joining this hackclub event.