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