added origin to mapper parameters
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user