|
|
|
|
|
|
{ |
|
|
|
// We switch to the Golden sequence instead of the Fibonacci sequence |
|
|
|
// since the sample count is not guaranteed to be a Fibonacci number. |
|
|
|
// TODO: might be interesting to try Mitchell's Poisson disk sampling algorithm. |
|
|
|
// In our case, samples would not have disks associated with them, but rather solid angles. |
|
|
|
float2 u = Golden2dSeq(i, sampleCount); |
|
|
|
SampleGGXDir(u, V, k_identity3x3, roughness, localL, NdotL, NdotH, LdotH, true); |
|
|
|
|
|
|
|