summaryrefslogtreecommitdiff
path: root/src/math/vec3.c
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-12-08 00:23:50 +0800
committerchai <chaifix@163.com>2019-12-08 00:23:50 +0800
commit3df29dc54c509c983dc8a0e23eab4160d48144f2 (patch)
treed8c5287c9979e731e373e7a1481aadd79d3f071b /src/math/vec3.c
parent8e684dc0c76708e3174f005aebcaabc144b85500 (diff)
+clipping
Diffstat (limited to 'src/math/vec3.c')
-rw-r--r--src/math/vec3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/math/vec3.c b/src/math/vec3.c
index 4ca8519..1deb52e 100644
--- a/src/math/vec3.c
+++ b/src/math/vec3.c
@@ -7,6 +7,7 @@
Vec3 vec3forward = {0,0,1};
Vec3 vec3up = {0, 1, 0};
Vec3 vec3left = {1, 0, 0};
+Vec3 vec3zero = {0, 0, 0};
void vec3_cross(Vec3* v1, Vec3* v2, Vec3* out) {
ssr_assert(v1 && v2 && out);