added origin to mapper parameters

This commit is contained in:
2026-07-24 19:06:14 -07:00
parent eddbb85256
commit 5298e75fdb
10 changed files with 23 additions and 25 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ namespace UwU {
if (x0 > buffer.width || y0 > buffer.height || x1 > buffer.width || y1 > buffer.height) {return;};
for (uint16_t y = y0; y <= y1; y++) {
for (uint16_t x = x0; x <= x1; x++) {
Coord2 uv = mapper.map(x, y);
Coord2 uv = mapper.map(x0, y0, x, y);
buffer.drawPixel(x, y, shader.shade(uv.x, uv.y));
}
}