In 1856, John Ruskin coined the term pathetic fallacy (in Modern Painters, Volume III, Part IV) to denote the attribution of human feelings to inanimate objects. One of the examples he gave comes from the poem The Sands o' Dee by Charles Kingsley:
They rowed her in across the rolling foam,—
The cruel, crawling foam,
The cruel, hungry foam,—
The foam is not cruel, nor does it crawl. The state of mind which attributes to it these characters of a living creature is one in which the reason is unhinged by grief.
Ruskin called this literary device a fallacy because the attribution of human feelings to inanimate objects or to nature is "false"; he called such passages "morbid" (Cuddon, page 692–693). Today, "pathetic fallacy" is no longer used to describe a flaw or weakness in a literary text.
A common example of a pathetic fallacy is
the attribution of bad weather to a deliberate intention on the part of nature, as in Hardy's The Return of the Native where the difficult conditions on Egdon Heath are for Eustacia Vye a result of deliberately hostile nature, whereas for the down-to-earth Thomasin they are merely the impartial actions of nature.
(King & King, page 125)
It is not a device that I would associate with Naturalism; it seems more strongly associated with Gothic fiction (even though the device is much older), since it can serve as a supernatural element. For example, the destruction of an oak tree in the second chapter of Mary Shelley's Frankenstein can be read as an example of pathetic fallacy (see Kilgour, page 211).
What Naturalism emphasises is the strong influence of social conditions and social forces (and human nature) on people's behaviour, rather than the influence of nature.
- Cuddon, J. A.: The Penguin Dictionary of Literary Terms and Literary Theory. Third edition. Penguin 1992.
- Kilgour, Maggie: The Rise of the Gothic Novel. Routledge, 2013.
- King, Neil; King, Sarah: Dictionary of Literature in English. Taylor & Francis, 2002.
- Ruskin, John: Modern Painters. Volume III, containing Part IV: Of Many Things. London: George Routledge, 1856. See specifically Chapter XII: "Of the Pathetic Fallacy", pages 166–188 (on Archive.org).
 As far as I know, the pejorative meaning intended by Ruskin derives from the noun "fallacy", not from the adjective "pathetic", which is derived from the noun pathos. The meaning "arousing scorn or contempt, often due to miserable inadequacy" is more recent.