import{n as i}from"./index-b54f5418.js";import"./three-dc46505d.js";var r=function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("div",{staticClass:"MeshBasicMaterial-container"},[a("de-collapse-layout",{attrs:{label:"参数设置",icon:"#iconshezhi","arrow-position":"left"},scopedSlots:t._u([{key:"container",fn:function(){return[a("de-controller-switch",{attrs:{label:"线框化",animation:{target:t.config,attribute:"wireframe"}},model:{value:t.config.wireframe,callback:function(e){t.$set(t.config,"wireframe",e)},expression:"config.wireframe"}}),a("de-controller-picker",{attrs:{label:"材质颜色",animation:{target:t.config,attribute:"color"}},model:{value:t.config.color,callback:function(e){t.$set(t.config,"color",e)},expression:"config.color"}}),a("de-controller-number",{attrs:{label:"环境遮挡",step:.01,"drag-multply":3,min:0,"display-accuracy":2,animation:{target:t.config,attribute:"aoMapIntensity"}},model:{value:t.config.aoMapIntensity,callback:function(e){t.$set(t.config,"aoMapIntensity",e)},expression:"config.aoMapIntensity"}}),a("de-controller-number",{attrs:{label:"光照强度",step:.01,"drag-multply":3,min:0,"display-accuracy":2,animation:{target:t.config,attribute:"lightMapIntensity"}},model:{value:t.config.lightMapIntensity,callback:function(e){t.$set(t.config,"lightMapIntensity",e)},expression:"config.lightMapIntensity"}}),a("de-controller-number",{attrs:{label:"空气折射率",step:.01,"drag-multply":3,min:0,max:1,"display-accuracy":2,animation:{target:t.config,attribute:"refractionRatio"}},model:{value:t.config.refractionRatio,callback:function(e){t.$set(t.config,"refractionRatio",e)},expression:"config.refractionRatio"}})]},proxy:!0}])}),a("de-collapse-layout",{attrs:{label:"贴图设置",icon:"#icontexture","arrow-position":"left"},scopedSlots:t._u([{key:"container",fn:function(){return[a("de-controller-select",{attrs:{label:"表面贴图",options:t.textureList,prop:{label:"name",value:"vid"},animation:{target:t.config,attribute:"map"}},model:{value:t.config.map,callback:function(e){t.$set(t.config,"map",e)},expression:"config.map"}}),a("de-controller-select",{attrs:{label:"透明贴图",options:t.textureList,prop:{label:"name",value:"vid"},animation:{target:t.config,attribute:"alphaMap"}},model:{value:t.config.alphaMap,callback:function(e){t.$set(t.config,"alphaMap",e)},expression:"config.alphaMap"}}),a("de-controller-select",{attrs:{label:"环境贴图",options:t.textureList,prop:{label:"name",value:"vid"},animation:{target:t.config,attribute:"envMap"}},model:{value:t.config.envMap,callback:function(e){t.$set(t.config,"envMap",e)},expression:"config.envMap"}}),a("de-controller-select",{attrs:{label:"环境遮挡贴图",options:t.textureList,prop:{label:"name",value:"vid"},animation:{target:t.config,attribute:"aoMap"}},model:{value:t.config.aoMap,callback:function(e){t.$set(t.config,"aoMap",e)},expression:"config.aoMap"}})]},proxy:!0}])})],1)},l=[];const c={props:{config:{type:Object,required:!0}},computed:{textureList(){const t=[{name:"无",vid:""}],n=this.$store.getters["texture/get"];return Object.keys(n).forEach(a=>{t.push({vid:a,name:n[a].name})}),t}}},o={};var s=i(c,r,l,!1,p,"d240c852",null,null);function p(t){for(let n in o)this[n]=o[n]}const g=function(){return s.exports}();export{g as default};
