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/Vector4.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Runtime/Math/Vector4.h (limited to 'Runtime/Math/Vector4.h') diff --git a/Runtime/Math/Vector4.h b/Runtime/Math/Vector4.h new file mode 100644 index 0000000..c0f99f2 --- /dev/null +++ b/Runtime/Math/Vector4.h @@ -0,0 +1,32 @@ +#pragma once + +namespace Internal +{ + + struct Vector4 + { + float x, y, z, w; + + Vector4(float x = 0, float y = 0, float z = 0, float w = 0) + { + this->x = x; + this->y = y; + this->z = z; + this->w = w; + } + + inline void Set(float x, float y, float z, float w) + { + this->x = x; + this->y = y; + this->z = z; + this->w = w; + } + + + static Vector4 zero; + static Vector4 one; + }; + + +} -- cgit v1.1-26-g67d0