Hi
I’m testing the screenshot code in the example, and I want to have it exported with a transparent background. To get to that, I need to disable the skybox before taking the screenshot and then ideally re-enabling it.
I’m trying this code to store it and reset. However, it seems .skybox is null. However _getSkybox()
function seems to work for me.
// Store away initial skybox
this.skyboxTexture = this.app.scene.skybox; // null
this.skyboxTexture = this.app.scene._getSkyboxTex(); // works
// Reset code:
this.app.scene.setSkybox([this.skyboxTexture]);