Make one mesh invisible but still affect other physical materials

A cube texture, made with PMREMGenerator from a big sphere with shader on the back side. Then applied to a small sphere as envMap.