import{n as i}from"./index-b54f5418.js";import"./three-dc46505d.js";var r=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"VisDirectionalLight-container"},[o("de-collapse-layout",{attrs:{label:"设置",icon:"#iconshezhi","arrow-position":"left"},scopedSlots:e._u([{key:"container",fn:function(){return[o("de-controller-picker",{attrs:{label:"颜色",animation:{target:e.config.vid,attribute:"color"}},model:{value:e.config.color,callback:function(a){e.$set(e.config,"color",a)},expression:"config.color"}}),o("de-controller-number",{attrs:{label:"亮度",step:.1,"drag-multply":5,min:0,"display-accuracy":2,animation:{target:e.config.vid,attribute:"intensity"}},model:{value:e.config.intensity,callback:function(a){e.$set(e.config,"intensity",a)},expression:"config.intensity"}})]},proxy:!0}])}),o("de-collapse-layout",{attrs:{label:"阴影",icon:"#iconshezhi","arrow-position":"left"},scopedSlots:e._u([{key:"container",fn:function(){return[o("de-controller-number",{attrs:{keyframe:!1,label:"近截面",step:1,"drag-multply":5,min:0},model:{value:e.config.shadow.camera.near,callback:function(a){e.$set(e.config.shadow.camera,"near",a)},expression:"config.shadow.camera.near"}}),o("de-controller-number",{attrs:{keyframe:!1,label:"远截面",step:1,"drag-multply":5,min:0},model:{value:e.config.shadow.camera.far,callback:function(a){e.$set(e.config.shadow.camera,"far",a)},expression:"config.shadow.camera.far"}}),o("de-controller-number",{attrs:{keyframe:!1,label:"阴影宽",step:1,"drag-multply":5,min:0},model:{value:e.shaowWidth,callback:function(a){e.shaowWidth=a},expression:"shaowWidth"}}),o("de-controller-number",{attrs:{keyframe:!1,label:"阴影高",step:1,"drag-multply":5,min:0},model:{value:e.shaowHeight,callback:function(a){e.shaowHeight=a},expression:"shaowHeight"}}),o("de-controller-number",{attrs:{keyframe:!1,label:"偏差",step:1e-4,"drag-multply":2,min:0},model:{value:e.config.shadow.bias,callback:function(a){e.$set(e.config.shadow,"bias",a)},expression:"config.shadow.bias"}}),o("de-controller-number",{attrs:{keyframe:!1,label:"法线偏移",step:.1,"drag-multply":2,min:0},model:{value:e.config.shadow.normalBias,callback:function(a){e.$set(e.config.shadow,"normalBias",a)},expression:"config.shadow.normalBias"}}),o("de-controller-number",{attrs:{keyframe:!1,label:"宽精度",step:1,"drag-multply":5,min:0},model:{value:e.config.shadow.mapSize.x,callback:function(a){e.$set(e.config.shadow.mapSize,"x",a)},expression:"config.shadow.mapSize.x"}}),o("de-controller-number",{attrs:{keyframe:!1,label:"高精度",step:1,"drag-multply":5,min:0},model:{value:e.config.shadow.mapSize.y,callback:function(a){e.$set(e.config.shadow.mapSize,"y",a)},expression:"config.shadow.mapSize.y"}})]},proxy:!0}])})],1)},l=[];const s={props:{config:{type:Object,required:!0}},computed:{shaowWidth:{get(){return console.log(this.config),this.config.shadow.camera.right-this.config.shadow.camera.left},set(e){this.config.shadow.camera.right=e/2,this.config.shadow.camera.left=-e/2}},shaowHeight:{get(){return this.config.shadow.camera.top-this.config.shadow.camera.bottom},set(e){this.config.shadow.camera.top=e/2,this.config.shadow.camera.bottom=-e/2}}}},n={};var c=i(s,r,l,!1,f,null,null,null);function f(e){for(let t in n)this[t]=n[t]}const u=function(){return c.exports}();export{u as default};
