How can dynamic switching of env be achieved?

Hello @superTigery , how are you doing?

You must consider that you are rendering to a cube texture. That requires a little more setup.

You can use this question from a previews user on how to set it up: Render to cubemap - Questions - Babylon.js