How to cut a texture? (parallax inside a box)

Discussed here: How to mask/clipping a sprite? - #6 by Pkeod