Create a green screen with a plain mesh and an unlit green material, place it behind the gun before you render to texture, then chroma key it out in the texture
Create a green screen with a plain mesh and an unlit green material, place it behind the gun before you render to texture, then chroma key it out in the texture