One of the great joys of Shakespeare's language is that it is so visually descriptive. Because the playhouses of his time, including the ones in which his plays were staged (The Theatre, The Globe, Blackfriars) were not equipped with the devices used to create modern stage production magic, much more was expected of the audience's imagination. Shakespeare famously refers to this expectation in the opening speech of the Chorus in Henry V, when he exhorts the spectators to "piece out our imperfections with your thoughts," and "Think, when we talk of horses, that you see them/Printing their proud hooves i' th' receiving earth."
In Hamlet, there are examples of these expectations throughout the play, and a modern director can take these and create an enhanced visual experience for the audience. For example, in the opening scene, it's implied that the night is very dark (and possibly foggy), since Barnardo cannot see Francisco at first although the latter is virtually on top of him. In Shakespeare's time, since this would have been staged in daylight, audiences would have had to imagine darkness and fog based on the dialogue. Today, lighting and a fog machine add to the ambiance.
Then, consider the Ghost (of Hamlet's father...or is he?). The very detailed description of him, including that he is "very pale" could be done at the Globe by costuming an actor in gray or white and painting his face, but a modern production can of course use all sorts of effects to make him a very frightening "dead corse, again in complete steel."
Skipping all the way to Act V, the "earthiness" of the Gravediggers is made explicit by their words and their many black jokes and puns as they toss up dirt and bones while digging Ophelia's grave. It's likely the Elizabethans used real dirt and spades, and possibly also a real skull for Yorick, but it's the words that engage all the senses, as when Hamlet asks, "Dost thou think Alexander looked o' this fashion i' th' earth?" and goes on to say, "And smelt so? Pah!" Although a modern production can make more use of light and sound to make the Gravediggers' world real, it's still the imagery of Shakespeare that conjures up the bleakly comic atmosphere of this scene.