Once the location of the next scattering is known, the new photon direction is determined from the local phase function. First, the type of scattering (Rayleigh, Aerosol, Water or Ice cloud) is sampled randomly from the fractional contribution of each to the total scattering cross section.
Back to the MYSTIC page