import{n as s}from"./index-b54f5418.js";import"./three-dc46505d.js";var l=function(){var e=this,o=e.$createElement,n=e._self._c||o;return n("div",{staticClass:"sceneSettingModule-container"},[n("de-collapse-layout",{attrs:{label:"场景设置",icon:"#iconchangjing","arrow-position":"left"},scopedSlots:e._u([{key:"container",fn:function(){return[n("de-controller-input",{attrs:{label:"名称"},model:{value:e.scene.name,callback:function(t){e.$set(e.scene,"name",t)},expression:"scene.name"}}),n("de-controller-input",{attrs:{label:"别名"},model:{value:e.scene.alias,callback:function(t){e.$set(e.scene,"alias",t)},expression:"scene.alias"}}),n("de-controller-select",{attrs:{keyframe:!1,label:"场景雾",options:e.fogList},model:{value:e.scene.fog.type,callback:function(t){e.$set(e.scene.fog,"type",t)},expression:"scene.fog.type"}}),e.scene.fog.type?n("de-controller-picker",{attrs:{label:"颜色",animation:{target:e.scene.fog,attribute:"color"}},model:{value:e.scene.fog.color,callback:function(t){e.$set(e.scene.fog,"color",t)},expression:"scene.fog.color"}}):e._e(),e.scene.fog.type==="Fog"?n("de-controller-number",{attrs:{label:"最小距离",step:1,"drag-multply":5,min:0,animation:{target:e.scene.fog,attribute:"near"}},model:{value:e.scene.fog.near,callback:function(t){e.$set(e.scene.fog,"near",t)},expression:"scene.fog.near"}}):e._e(),e.scene.fog.type==="Fog"?n("de-controller-number",{attrs:{label:"最大距离",step:1,"drag-multply":5,min:0,animation:{target:e.scene.fog,attribute:"far"}},model:{value:e.scene.fog.far,callback:function(t){e.$set(e.scene.fog,"far",t)},expression:"scene.fog.far"}}):e._e(),e.scene.fog.type==="FogExp2"?n("de-controller-number",{attrs:{label:"密度",step:.001,"drag-multply":3,min:0,animation:{target:e.scene.fog,attribute:"density"}},model:{value:e.scene.fog.density,callback:function(t){e.$set(e.scene.fog,"density",t)},expression:"scene.fog.density"}}):e._e(),e.scene.background?e._e():n("de-controller-picker",{attrs:{label:"背景颜色",animation:{target:e.scene,attribute:"background"}},model:{value:e.scene.background,callback:function(t){e.$set(e.scene,"background",t)},expression:"scene.background"}}),n("de-controller-select",{attrs:{label:"背景贴图",options:e.textureList,prop:{label:"name",value:"vid"},animation:{target:e.scene,attribute:"background"}},model:{value:e.scene.background,callback:function(t){e.$set(e.scene,"background",t)},expression:"scene.background"}}),n("de-controller-select",{attrs:{label:"环境贴图",options:e.textureList,prop:{label:"name",value:"vid"},animation:{target:e.scene,attribute:"environment"}},model:{value:e.scene.environment,callback:function(t){e.$set(e.scene,"environment",t)},expression:"scene.environment"}})]},proxy:!0}])})],1)},r=[];const c={data(){return{fogList:[{label:"无",value:""},{label:"线性雾",value:"Fog"},{lable:"指数雾",value:"FogExp2"}]}},computed:{scene(){return this.$store.getters["scene/currentScene"]},textureList(){return[].concat([{name:"无",vid:""}],this.$store.getters["texture/list"])}}},a={};var i=s(c,l,r,!1,u,"27545951",null,null);function u(e){for(let o in a)this[o]=a[o]}const f=function(){return i.exports}();export{f as default};
