SWIm can simulate rainbows and glories based on rain and cloud droplets. 22 degree halos, sundogs, light pillars, and sub-suns are simulated based on cloud ice crystal habits. The proportion of ice crystals with relatively pure hexagonal prisms and plates depends on temperature. The estimated purity of the habits depends also on water vapor. and is considered along with the distribution of crystal orientations.