"use strict";exports.__esModule=!0,exports.default=void 0;var _extension=require("../../core/extension"),_three=require("three"),_default=exports.default=(0,_extension.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 _three.CubeTextureLoader().load(d)};return c(a),{createSkybox:c,clear:()=>{b.scene.background=null}}}});