In this video tutorial, Pete Anderson from CG Bootcamp covers how to use Maya Mental Ray’s transmat and parti_volume nodes to create a light ray effect. Physical Sun and Sky is also part of this tutorial.
Maya: Rendering Light Rays in Mental Ray from CG Bootcamp on Vimeo.