diff options
author | rodri <rgl@antares-labs.eu> | 2024-02-13 16:40:31 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-02-13 16:40:31 +0000 |
commit | 5b93335dd430e09a71ebaba131826cd7db154cb4 (patch) | |
tree | 001f2c074d836ad2f31b8836be8443f1f18be327 /camera.c | |
parent | e90bf70b0d7167166a3c84e4f3e9277ce4a7e97a (diff) | |
download | libgraphics-5b93335dd430e09a71ebaba131826cd7db154cb4.tar.gz libgraphics-5b93335dd430e09a71ebaba131826cd7db154cb4.tar.bz2 libgraphics-5b93335dd430e09a71ebaba131826cd7db154cb4.zip |
lay out the grounds for a scene renderer.
also fixed an issue with cliptriangle() where an
entire tri would get discarded if all its vertices
were outside the frustum.
Diffstat (limited to 'camera.c')
-rw-r--r-- | camera.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -78,14 +78,13 @@ reloadcamera(Camera *c) } void -shootcamera(Camera *c, OBJ *m, Memimage *tex, Shader *s) +shootcamera(Camera *c, Shader *s) { uvlong t0, t1; c->vp->fbctl->reset(c->vp->fbctl); t0 = nanosec(); - /* TODO let the user choose the nproc value (left at 1 for now) */ - shade(c->vp->fbctl->fb[c->vp->fbctl->idx^1], m, tex, s, 1); /* address the back buffer */ + shade(c->vp->fbctl->fb[c->vp->fbctl->idx^1], c->s, s); /* address the back buffer */ t1 = nanosec(); c->vp->fbctl->swap(c->vp->fbctl); |