Do you know why the sun doesn't shine through most objects but the lighthouse does? I would have thought the otherway round!

I know that the sun does shine through on the edges but no further! Also the lighthouse doesn't shine through some of the vegetation!