Legendre fluids: a unified framework for analytic reduced space modeling and rendering of participating media