import{definePlugin}from"../../core/extension";import{CubeTextureLoader}from"three";export default definePlugin("sky-box",{setup(a,b){const c=a=>{const c=a.type||".jpg",d=[a.path+"posx"+c,a.path+"negx"+c,a.path+"posy"+c,a.path+"negy"+c,a.path+"posz"+c,a.path+"negz"+c];b.scene.background=new CubeTextureLoader().load(d)};return c(a),{createSkybox:c,clear:()=>{b.scene.background=null}}}});