import{_ as I}from"./index-M_JNBppB.js";import"./el-collapse-item-l0sNRNKZ.js";/* empty css                     *//* empty css                              *//* empty css                 *//* empty css                  *//* empty css                  *//* empty css                        */import"./el-tooltip-l0sNRNKZ.js";/* empty css                  *//* empty css                  */import{ax as P,aA as S,y as V,z as m,F as o,O as a,B as v,I as g,K as b,M as _,D as u,a7 as z,L as F}from"./vue-BJk78QHK.js";import{a as N,b as A,r as M,f as O,_ as j,s as D,u as L}from"./element-3_pOinej.js";import"./threejs-BafxXW5-.js";import"./utils-YI6ye1sf.js";import"./vxe-Dx3zSILm.js";const K={class:"preset-container"},R={__name:"PostProcessingAttr",props:{propValue:{},propValueModifiers:{}},emits:["update:propValue"],setup(k){P();const l=S(k,"propValue"),n={show:!0,skin:"#ffffff",hueRotate:0,grayscale:0,brightness:100,contrast:100,saturate:100,opacity:100,sepia:0,bloom:8,vignette:0},x={默认:{...n},赛博朋克:{...n,bloom:20,contrast:120,saturate:140,skin:"#ff00ff",vignette:30},冷调科技:{...n,bloom:10,brightness:110,saturate:80,skin:"#00ffff",vignette:20},怀旧电影:{...n,sepia:70,contrast:110,brightness:90,vignette:50},高级黑白:{...n,grayscale:100,contrast:130,brightness:110,vignette:40}};function U(){Object.assign(l.value.layer,n)}function c(i){Object.assign(l.value.layer,i)}return(i,e)=>{const w=M,p=O,s=A,r=j,E=D,C=N,B=L;return m(),V(B,{title:"后处理",name:"layer"},{default:o(()=>[a(C,{class:"more-form","label-position":"left","label-width":"100px"},{default:o(()=>{var d,f;return[a(s,{label:"开启后处理:"},{default:o(()=>[a(w,{size:"small",modelValue:l.value.layer.show,"onUpdate:modelValue":e[0]||(e[0]=t=>l.value.layer.show=t)},null,8,["modelValue"]),l.value.layer.show?(m(),V(p,{key:0,type:"primary",link:"",size:"small",onClick:U,style:{"margin-left":"20px"}},{default:o(()=>e[10]||(e[10]=[b(" 重置 ")])),_:1})):g("",!0)]),_:1}),(f=(d=l.value)==null?void 0:d.layer)!=null&&f.show?(m(),v(_,{key:0},[e[11]||(e[11]=u("div",{class:"attr-group-title"}," 风格预设 ",-1)),u("div",K,[(m(),v(_,null,z(x,(t,y)=>a(p,{key:y,size:"small",onClick:T=>c(t)},{default:o(()=>[b(F(y),1)]),_:2},1032,["onClick"])),64))]),e[12]||(e[12]=u("div",{class:"attr-group-title"}," 画面增强 ",-1)),a(s,{label:"辉光强度:"},{default:o(()=>[a(r,{modelValue:l.value.layer.bloom,"onUpdate:modelValue":e[1]||(e[1]=t=>l.value.layer.bloom=t),min:0,max:100},null,8,["modelValue"])]),_:1}),a(s,{label:"晕影(暗角):"},{default:o(()=>[a(r,{modelValue:l.value.layer.vignette,"onUpdate:modelValue":e[2]||(e[2]=t=>l.value.layer.vignette=t),min:0,max:100},null,8,["modelValue"])]),_:1}),e[13]||(e[13]=u("div",{class:"attr-group-title"}," 颜色校正 ",-1)),a(s,{label:"色调叠加:"},{default:o(()=>[a(E,{modelValue:l.value.layer.skin,"onUpdate:modelValue":e[3]||(e[3]=t=>l.value.layer.skin=t)},null,8,["modelValue"])]),_:1}),a(s,{label:"亮度:"},{default:o(()=>[a(r,{modelValue:l.value.layer.brightness,"onUpdate:modelValue":e[4]||(e[4]=t=>l.value.layer.brightness=t),min:0,max:200},null,8,["modelValue"])]),_:1}),a(s,{label:"对比度:"},{default:o(()=>[a(r,{modelValue:l.value.layer.contrast,"onUpdate:modelValue":e[5]||(e[5]=t=>l.value.layer.contrast=t),min:0,max:200},null,8,["modelValue"])]),_:1}),a(s,{label:"饱和度:"},{default:o(()=>[a(r,{modelValue:l.value.layer.saturate,"onUpdate:modelValue":e[6]||(e[6]=t=>l.value.layer.saturate=t),min:0,max:200},null,8,["modelValue"])]),_:1}),e[14]||(e[14]=u("div",{class:"attr-group-title"}," 艺术滤镜 ",-1)),a(s,{label:"黑白度:"},{default:o(()=>[a(r,{modelValue:l.value.layer.grayscale,"onUpdate:modelValue":e[7]||(e[7]=t=>l.value.layer.grayscale=t),min:0,max:100},null,8,["modelValue"])]),_:1}),a(s,{label:"怀旧感:"},{default:o(()=>[a(r,{modelValue:l.value.layer.sepia,"onUpdate:modelValue":e[8]||(e[8]=t=>l.value.layer.sepia=t),min:0,max:100},null,8,["modelValue"])]),_:1}),a(s,{label:"不透明度:"},{default:o(()=>[a(r,{modelValue:l.value.layer.opacity,"onUpdate:modelValue":e[9]||(e[9]=t=>l.value.layer.opacity=t),min:0,max:100,onInput:i.update},null,8,["modelValue","onInput"])]),_:1})],64)):g("",!0)]}),_:1})]),_:1})}}},se=I(R,[["__scopeId","data-v-a94058be"]]);export{se as default};
