sunflowのフォトン数

メッシュ光源のフォトン数はphotonsのemit数ではなく、
lightserverのdirect-samplesで指定するようだ。
これは1メッシュあたりのフォトン数らしく、
光源のメッシュを細分割すればメッシュ数が増えるのでフォトンの数も増える。


[GPM] Global photon map:
[GPM] * Photons stored: 897120
...
[LSV] Light Server Statistics:
...
[LSV] * Emitted photons: 524131

パラメータはこんな感じ。

lightserver {
shadows true
direct-samples 16
max-depth 9
}

photons {
emit 4000
global kd 50 0.1
caustics none 50 0.1
}

gi {
type irr-cache
samples 256
tolerance 0.05
spacing 0.1
}

accel uniformgrid
bucket 32 row
filter box 2 2