Usage patterns
日光を浴びるto bask in / soak up sunlight
I like basking in the sunlight at the park on my days off.
〈場所〉に日光が当たるfor sunlight to hit/fall on a place
Sunlight falls on this room all day long.
日光を遮るto block/shade out sunlight
I blocked the sunlight with the curtains.
日光にさらすto expose (something) to sunlight
I dried the laundry by exposing it to sunlight.