How to hide sky box in render target?

You could set the far-clipping plane on the camera you’re capturing from to a lower value, and that should clip out the background stuff.