How to use importance sampling to model scattering efficiently