# Combine 360 HDR with video background

I have a scene with some Glass BSDF Text and a rendered video as background. Because the video is not in 360°, I'd like to add a HDRi Image as Environment, but still keep the video as background to get the right refraction. Any idea on how to combine the two?

My World Shader as of now:

Separate the Window sockets output into its channels. This will result in X, Y and Z coordinates from the camera view window. We are interested in the X and Y values which are inbetween of [0, 1]. We can filter them out with the Greater than and Less than nodes.