diff options
Diffstat (limited to 'src/example/02_cube.c')
-rw-r--r-- | src/example/02_cube.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/example/02_cube.c b/src/example/02_cube.c index caedd64..c1f2796 100644 --- a/src/example/02_cube.c +++ b/src/example/02_cube.c @@ -53,7 +53,7 @@ void ondrawcube(void*data) { for (int i = 0; i < 8; ++i) { Vec4 v = { verts[i].x, verts[i].y ,verts[i].z ,1 }, temp; - mat4_applytovec4(&m, &v, &temp); + mat4_mulvec4(&m, &v, &temp); temp.x /= temp.w; temp.y /= temp.w; temp.z /= temp.w; |