summaryrefslogtreecommitdiff
path: root/camera.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-02-14 17:46:40 +0000
committerrodri <rgl@antares-labs.eu>2024-02-14 17:46:40 +0000
commit3134de0eaeb4c9d7d7703bba1d76a4a477f7c6f4 (patch)
treed0efbc9c6f4c37d40f9250e41441665fede0529b /camera.c
parent5b93335dd430e09a71ebaba131826cd7db154cb4 (diff)
downloadlibgraphics-3134de0eaeb4c9d7d7703bba1d76a4a477f7c6f4.tar.gz
libgraphics-3134de0eaeb4c9d7d7703bba1d76a4a477f7c6f4.tar.bz2
libgraphics-3134de0eaeb4c9d7d7703bba1d76a4a477f7c6f4.zip
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.
Diffstat (limited to 'camera.c')
0 files changed, 0 insertions, 0 deletions