.overrideMaterial = this.currentOverrideMaterial;
                this.scene.background = this.currentBackground;
                this.renderer.setClearColor(this.currentClearColor, this.currentClearAlpha);

                // Restore original materials
                for (const [object, material] of this.originalMaterials.entries()) {
                    object.material = material;
                }
            }

            // Public methods

            static resize = (width, height, dpr) => {
       