Source code for pbrt, the renderer described in the third edition of "Physically Based Rendering: From Theory To Implementation", by Matt Pharr, Wenzel Jakob, and Greg Humphreys.
In the StratifiedSampler::StartPixel() routine, where we shuffle the 2D coordinates of the non-array sample vectors (https://github.com/mmp/pbrt-v3/blob/master/src/samplers/stratified.cpp#L54), shouldn't the ndim of this function's argument be 2 instead of being 1 , since we're randomly shuffling the entire 2d sample (the whole dimension)?
In the
StratifiedSampler::StartPixel()
routine, where we shuffle the 2D coordinates of the non-array sample vectors (https://github.com/mmp/pbrt-v3/blob/master/src/samplers/stratified.cpp#L54), shouldn't thendim
of this function's argument be 2 instead of being 1 , since we're randomly shuffling the entire 2d sample (the whole dimension)?