summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2024-01-11 07:02:55 +0100
committerkdx <kikoodx@paranoici.org>2024-01-11 07:02:55 +0100
commit2101b47c979f3091e9d7286eb3a8ce5cc74e3210 (patch)
treece4960a062afa47daf3c14af8b887a3ecab3997f
parent382cc075654935ebed6d503102291240a8a129df (diff)
download008-2101b47c979f3091e9d7286eb3a8ce5cc74e3210.tar.gz
no gaps
-rw-r--r--src/main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 73cfea4..5f6a0e4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -71,24 +71,25 @@ _main_loop([[maybe_unused]] void *udata)
TZR_BlendMode(SDL_BLENDMODE_ADD);
Mat4 m = mat4_identity();
- m = mat4_dot(m, mat4_scaling(0.9, 0.9, 48));
+ m = mat4_dot(m, mat4_scaling(1, 1, 48));
m = mat4_dot(m, mat4_translating(-7.5 - x, -7.5 - y, -256));
Mat4 m_spike = mat4_identity();
- m_spike = mat4_dot(m_spike, mat4_scaling(0.9, 1.0, 16));
- m_spike = mat4_dot(m_spike, mat4_translating(-7.5 - x, -7.45 - y, -256));
+ m_spike = mat4_dot(m_spike, mat4_scaling(1, 1, 16));
+ m_spike = mat4_dot(m_spike, mat4_translating(-7.5 - x, -7.5 - y, -256));
- TZR_DrawSetColor(1, 0, 0);
repeat (y, 16) {
repeat (x, 16) {
if (y == 14 && x != 0 && x != 15) {
Mat4 lm = mat4_dot(m_spike,
mat4_translating(x, y, 0));
+ TZR_DrawSetColor(1, 0, 0);
mesh_draw(g_spike, lm);
}
if (x != 0 && x != 15 && y != 0 && y != 15)
continue;
Mat4 lm = mat4_dot(m, mat4_translating(x, y, 0));
+ TZR_DrawSetColor(0, 0, 1);
mesh_draw(g_cube, lm);
}
}