Realistic atmosphere

How do you use samples in the material editor?