Different clothes provide different levels of UV protection. Covering up the skin doesn't block out all UV rays. If you can see the light through a fabric, UV rays can get through too. And if UV rays can penetrate, the body can produce vitamin D.