summaryrefslogtreecommitdiff
path: root/vertex.c
diff options
context:
space:
mode:
Diffstat (limited to 'vertex.c')
-rw-r--r--vertex.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/vertex.c b/vertex.c
index bc7759f..204c6fc 100644
--- a/vertex.c
+++ b/vertex.c
@@ -43,6 +43,9 @@ dupvertex(Vertex *v)
return nv;
}
+/*
+ * linear attribute interpolation
+ */
void
lerpvertex(Vertex *v, Vertex *v0, Vertex *v1, double t)
{
@@ -68,7 +71,7 @@ lerpvertex(Vertex *v, Vertex *v0, Vertex *v1, double t)
}
/*
- * perspective-correct barycentric attribute interpolation
+ * barycentric attribute interpolation
*/
void
berpvertex(Vertex *v, Vertex *v0, Vertex *v1, Vertex *v2, Point3 bc)