From 3cf4ab846052dede70b02f93edf0bdd7a0aa9f09 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Wed, 28 Jan 2026 13:28:47 +0900 Subject: [PATCH] scaling! --- client/main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/main.c b/client/main.c index bdbb981..0755da6 100644 --- a/client/main.c +++ b/client/main.c @@ -74,15 +74,16 @@ static void render(GSEngine self){ for(i = -1; i <= 1; i++){ for(j = -1; j <= 1; j++){ GSVector3 pos2; + double s = fabs(sin(rot[0] / 180 * GSMathPi)); - pos2[0] = i; + pos2[0] = i * s * 2; pos2[1] = 0; - pos2[2] = j; + pos2[2] = j * s * 2; GSGLPushMatrix(gl); GSGLSetPosition(gl, pos2); GSGLSetRotation(gl, rot); - GSGLTetrakis(gl, 0.5, col, col2); + GSGLTetrakis(gl, s, col, col2); GSGLPopMatrix(gl); } }