From 7e48c57e1c76d4ef874a2e15bfe9fd43e33f60a8 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Thu, 1 Jan 2026 09:49:59 -0800 Subject: Notes on coordinate systems --- src/swgfx.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/swgfx.c') diff --git a/src/swgfx.c b/src/swgfx.c index 3bec663..7ade051 100644 --- a/src/swgfx.c +++ b/src/swgfx.c @@ -272,8 +272,6 @@ void SetDepth(swgfx* gfx, const sgVec2i p, R depth) { sgPixel Sample(const sgTexture_t* texture, sgVec2 uv) { assert(texture); assert(texture->pixels); - // TODO: (1/2, 1/2) is the center of the pixel. Do we need to do something - // about it here? #define INDEX(X,Y) texture->pixels[(Y) * texture->width + (X)] // Doing a nearest sample for now. TODO: Other sampling strategies. const int x = (int)(uv.x * (R)texture->width); -- cgit v1.2.3