From 117c310e8baf60aa5f052214e1747b5846f34b4e Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 14 Feb 2026 19:18:12 -0800 Subject: Directional light --- include/swgfx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/swgfx.h b/include/swgfx.h index d527f02..f849ba5 100644 --- a/include/swgfx.h +++ b/include/swgfx.h @@ -31,7 +31,7 @@ typedef float R; typedef struct sgVec2i { int x, y; } sgVec2i; typedef struct sgVec2 { R x, y; } sgVec2; typedef struct sgVec3 { union { struct { R r, g, b; }; struct { R x, y, z; }; }; } sgVec3; -typedef struct sgVec4 { union { struct { R r, g, b, a; }; struct { R x, y, z, w; }; }; } sgVec4; +typedef struct sgVec4 { union { struct { R r, g, b, a; }; struct { R x, y, z, w; }; struct { sgVec3 rgb; R _; }; }; } sgVec4; typedef sgVec3 sgNormal; -- cgit v1.2.3