From 5c653ffd6a05f7f45a214fb6b4be12289d27546e Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Thu, 29 Jan 2026 15:29:20 +0900 Subject: [PATCH] colorful --- client/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/main.c b/client/main.c index 52d5e22..c9b4270 100644 --- a/client/main.c +++ b/client/main.c @@ -75,11 +75,16 @@ static void render(GSEngine self){ for(j = -1; j <= 1; j++){ GSVector3 pos2; double s = fabs(sin(rot[0] / 180 * GSMathPi)); + int n = (i + 1) * 3 + (j + 1); pos2[0] = i * s * 2; pos2[1] = 0; pos2[2] = j * s * 2; + col2[2] = n & 1; + col2[1] = (n & 2) ? 1 : 0; + col2[0] = (n & 4) ? 1 : 0; + GSGLPushMatrix(gl); GSGLSetPosition(gl, pos2); GSGLSetRotation(gl, rot);