g/sample: remember to forward generator objects in extent sampler

This commit is contained in:
Danny Robson 2020-11-06 12:26:49 +10:00
parent 5d585d405f
commit 95f05cd632

View File

@ -50,13 +50,13 @@ namespace cruft::geom::sample {
if (pos <= w) {
auto const _w = pos;
auto const _h = cruft::random::uniform (1) ? h : 0;
auto const _h = cruft::random::uniform (1, gen) ? h : 0;
return { _w, _h };
}
pos -= w;
auto const _w = cruft::random::uniform (1) ? w : 0;
auto const _w = cruft::random::uniform (1, gen) ? w : 0;
auto const _h = pos;
return { _w, _h };