summaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-10-02 20:46:39 +0000
committerrodri <rgl@antares-labs.eu>2024-10-02 20:46:39 +0000
commit0abc1ca44de64a689f5877e4b7e194c43a1ddcd8 (patch)
tree8262ecd3ad2f3a53be7bcbfcd813cfeec71ad714 /render.c
parentb6a336aff26fbc94e7803719a8aeb8fa29eddb9b (diff)
downloadlibgraphics-0abc1ca44de64a689f5877e4b7e194c43a1ddcd8.tar.gz
libgraphics-0abc1ca44de64a689f5877e4b7e194c43a1ddcd8.tar.bz2
libgraphics-0abc1ca44de64a689f5877e4b7e194c43a1ddcd8.zip
shorten Shadertab prop names. add quaternion sandwich product utils.
Diffstat (limited to 'render.c')
-rw-r--r--render.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/render.c b/render.c
index 672b4b5..400593d 100644
--- a/render.c
+++ b/render.c
@@ -207,7 +207,7 @@ rasterize(Rastertask *task)
fsp.v = &prim->v[0];
fsp.p = p;
- c = params->stab->fshader(&fsp);
+ c = params->stab->fs(&fsp);
if(c.a == 0) /* discard non-colors */
break;
if(ropts & RODepth)
@@ -273,7 +273,7 @@ rasterize(Rastertask *task)
lerpvertex(fsp.v, &prim->v[0], &prim->v[1], perc);
fsp.p = p;
- c = params->stab->fshader(&fsp);
+ c = params->stab->fs(&fsp);
if(c.a == 0) /* discard non-colors */
goto discard;
if(ropts & RODepth)
@@ -327,7 +327,7 @@ discard:
berpvertex(fsp.v, &prim->v[0], &prim->v[1], &prim->v[2], bc);
fsp.p = p;
- c = params->stab->fshader(&fsp);
+ c = params->stab->fs(&fsp);
if(c.a == 0) /* discard non-colors */
continue;
if(ropts & RODepth)
@@ -482,7 +482,7 @@ tiler(void *arg)
vsp.v = &p->v[0];
vsp.idx = 0;
- p->v[0].p = params->stab->vshader(&vsp);
+ p->v[0].p = params->stab->vs(&vsp);
if(!isvisible(p->v[0].p))
break;
@@ -517,7 +517,7 @@ tiler(void *arg)
vsp.v = &p->v[i];
vsp.idx = i;
- p->v[i].p = params->stab->vshader(&vsp);
+ p->v[i].p = params->stab->vs(&vsp);
}
if(!isvisible(p->v[0].p) || !isvisible(p->v[1].p)){
@@ -563,7 +563,7 @@ tiler(void *arg)
vsp.v = &p->v[i];
vsp.idx = i;
- p->v[i].p = params->stab->vshader(&vsp);
+ p->v[i].p = params->stab->vs(&vsp);
}
if(!isvisible(p->v[0].p) || !isvisible(p->v[1].p) || !isvisible(p->v[2].p)){