Closed tigrazone closed 11 months ago
I store 'samples per pixel' with the last array entry of uSobol array, and its index is (uBounce + 1) * 2
Little bit strange ;-) I find it in code https://github.com/AdamYuan/SparseVoxelOctree/blob/3b175fc872552a859adba675620149c7a2020849/src/PathTracer.cpp#L184
Why you do it this way?
uBounce/m_bounce is not an frame number. uBounce/m_bounce is max depth of tracing of ray
https://github.com/AdamYuan/SparseVoxelOctree/blob/3b175fc872552a859adba675620149c7a2020849/shader/sobol.comp#L83 the last element in uSobol array is increased per 'frame'
and uDimension is (m_bounce + 1) * 2
last element in uSobol array used only for spp calculation or for random numbers also?
only for spp
thank you for answers
Hello. Why you use m_bounce to calculate spp for divide accumulated but not use real frame number?
https://github.com/AdamYuan/SparseVoxelOctree/blob/3b175fc872552a859adba675620149c7a2020849/shader/path_tracer.comp#L123