kNN search does not use global state now
Irradiance photons are also looked up without altering the internal state of the object