Ingenious said it best, most would use a text layer white the color white or black on a low opacity, and duplicate it around the image (ctrl+j) as necessary.
You could as an alternative try a blending mode in the layers panel, like soft light, overlay, or the like! :)