diff options
author | chai <chaifix@163.com> | 2019-12-15 16:01:48 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-12-15 16:01:48 +0800 |
commit | bcb7c0a426e66dc57007ae9a0e879358c7860fbb (patch) | |
tree | 7ae13fbfbe7c54a3274adba193b1c6edc7fb9c65 /src/example/02_cube.c | |
parent | a0b8ef3d482c965901f094879a79dd9c5fd8245c (diff) |
*misc
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; |