I've tried to devise a formula, but no matter what I choose, there are many exceptions. It really depends on what you mean.
Actually, you can say, "It is wet by rain," in passive voice. "The rain is wetting it." By choosing "from," you indicate that your intention is to treat it as "to be" plus adjective complement.