shithub: libgraphics

Download patch

ref: dc21c6d3ee44b7e088dc305e2ab685a433b42a75
parent: 6c7fd839f6ea6326bae354a27a2ba3c592444856
author: rodri <rgl@antares-labs.eu>
date: Wed Feb 7 07:19:23 EST 2024

implement perspective-correct attribute interpolation.

also committing unfinished code for the clipping algorithm.

references:
	- Kok-Lim Low, “Perspective-Correct Interpolation”, 2002
	- https://www.scratchapixel.com/lessons/3d-basic-rendering/rasterization-practical-implementation/perspective-correct-interpolation-vertex-attributes.html
	- https://www.rose-hulman.edu/class/csse/csse351-abet/m10/triangle_fill.pdf, p. 23