From 91c32cb173201ac8803a1e4452e8342969b8e484 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 29 Oct 2021 13:36:49 +0800 Subject: *GLSL test --- Runtime/Math/Vector3.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Runtime/Math/Vector3.h') diff --git a/Runtime/Math/Vector3.h b/Runtime/Math/Vector3.h index c0a35f3..e81e880 100644 --- a/Runtime/Math/Vector3.h +++ b/Runtime/Math/Vector3.h @@ -7,7 +7,12 @@ namespace Internal struct Vector3 { float x, y, z; - + Vector3(float x = 0, float y = 0, float z = 0) + { + this->x = x; + this->y = y; + this->z = z; + } inline void Set(float x, float y, float z) { this->x = x; @@ -15,6 +20,10 @@ namespace Internal this->z = z; } + + static Vector3 zero; + static Vector3 one; + }; -- cgit v1.1-26-g67d0