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
@@ -24,7 +24,7 @@ namespace UwU {
template <class MapperT, class ShaderT>
void draw (Buffer buffer, MapperBase<MapperT>& mapper, ShaderBase<ShaderT>& shader) {
if (x > buffer.width || y > buffer.height) {return;};
Coord2 uv = mapper.map(x, y);
Coord2 uv = mapper.map(x, y, x, y);
buffer.drawPixel(x, y, shader.shade(uv.x, uv.y));
return;
}