shithub: libgraphics

Download patch

ref: 3134de0eaeb4c9d7d7703bba1d76a4a477f7c6f4
parent: 5b93335dd430e09a71ebaba131826cd7db154cb4
author: rodri <rgl@antares-labs.eu>
date: Wed Feb 14 12:46:40 EST 2024

pass an entire entity to the shader unit. fix a bug in cliptriangle.

an entity is passed instead of a model so we can access
its frame of reference to perform the model-to-world
transformation.

the bug in cliptriangle was due to sd[01] being declared
as static which, when rendering multiple entities, was
causing d0 = d1, which led to division-by-zero.