[{"data":1,"prerenderedAt":701},["ShallowReactive",2],{"navigation":3,"\u002Fapi\u002Fwebgpu\u002Fchromatic-aberration":213,"\u002Fapi\u002Fwebgpu\u002Fchromatic-aberration-surround":696},[4,14,203],{"title":5,"path":6,"stem":7,"children":8},"Introduction","\u002Fgetting-started","1.getting-started\u002F1.index",[9,10],{"title":5,"path":6,"stem":7},{"title":11,"path":12,"stem":13},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":15,"path":16,"stem":17,"children":18},"Api","\u002Fapi","2.api",[19,22,148,178],{"title":20,"path":16,"stem":21},"API Reference","2.api\u002Findex",{"title":23,"path":24,"stem":25,"children":26},"Pmndrs Effects","\u002Fapi\u002Fpmndrs","2.api\u002F1.pmndrs\u002Findex",[27,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144],{"title":23,"path":24,"stem":25},{"title":29,"path":30,"stem":31},"ASCII","\u002Fapi\u002Fpmndrs\u002Fascii","2.api\u002F1.pmndrs\u002Fascii",{"title":33,"path":34,"stem":35},"Barrel Blur","\u002Fapi\u002Fpmndrs\u002Fbarrel-blur","2.api\u002F1.pmndrs\u002Fbarrel-blur",{"title":37,"path":38,"stem":39},"Bloom","\u002Fapi\u002Fpmndrs\u002Fbloom","2.api\u002F1.pmndrs\u002Fbloom",{"title":41,"path":42,"stem":43},"Brightness & Contrast","\u002Fapi\u002Fpmndrs\u002Fbrightness-contrast","2.api\u002F1.pmndrs\u002Fbrightness-contrast",{"title":45,"path":46,"stem":47},"Chromatic Aberration","\u002Fapi\u002Fpmndrs\u002Fchromatic-aberration","2.api\u002F1.pmndrs\u002Fchromatic-aberration",{"title":49,"path":50,"stem":51},"Color Average","\u002Fapi\u002Fpmndrs\u002Fcolor-average","2.api\u002F1.pmndrs\u002Fcolor-average",{"title":53,"path":54,"stem":55},"Color Depth","\u002Fapi\u002Fpmndrs\u002Fcolor-depth","2.api\u002F1.pmndrs\u002Fcolor-depth",{"title":57,"path":58,"stem":59},"Depth of Field","\u002Fapi\u002Fpmndrs\u002Fdepth-of-field","2.api\u002F1.pmndrs\u002Fdepth-of-field",{"title":61,"path":62,"stem":63},"Dot Screen","\u002Fapi\u002Fpmndrs\u002Fdot-screen","2.api\u002F1.pmndrs\u002Fdot-screen",{"title":65,"path":66,"stem":67},"Fish Eye","\u002Fapi\u002Fpmndrs\u002Ffish-eye","2.api\u002F1.pmndrs\u002Ffish-eye",{"title":69,"path":70,"stem":71},"FXAA","\u002Fapi\u002Fpmndrs\u002Ffxaa","2.api\u002F1.pmndrs\u002Ffxaa",{"title":73,"path":74,"stem":75},"Glitch","\u002Fapi\u002Fpmndrs\u002Fglitch","2.api\u002F1.pmndrs\u002Fglitch",{"title":77,"path":78,"stem":79},"God Rays","\u002Fapi\u002Fpmndrs\u002Fgod-rays","2.api\u002F1.pmndrs\u002Fgod-rays",{"title":81,"path":82,"stem":83},"Grid","\u002Fapi\u002Fpmndrs\u002Fgrid","2.api\u002F1.pmndrs\u002Fgrid",{"title":85,"path":86,"stem":87},"Hue & Saturation","\u002Fapi\u002Fpmndrs\u002Fhue-saturation","2.api\u002F1.pmndrs\u002Fhue-saturation",{"title":89,"path":90,"stem":91},"Kuwahara","\u002Fapi\u002Fpmndrs\u002Fkuwahara","2.api\u002F1.pmndrs\u002Fkuwahara",{"title":93,"path":94,"stem":95},"Lens Distortion","\u002Fapi\u002Fpmndrs\u002Flens-distortion","2.api\u002F1.pmndrs\u002Flens-distortion",{"title":97,"path":98,"stem":99},"Linocut","\u002Fapi\u002Fpmndrs\u002Flinocut","2.api\u002F1.pmndrs\u002Flinocut",{"title":101,"path":102,"stem":103},"N8AO","\u002Fapi\u002Fpmndrs\u002Fn8ao","2.api\u002F1.pmndrs\u002Fn8ao",{"title":105,"path":106,"stem":107},"Noise","\u002Fapi\u002Fpmndrs\u002Fnoise","2.api\u002F1.pmndrs\u002Fnoise",{"title":109,"path":110,"stem":111},"Outline","\u002Fapi\u002Fpmndrs\u002Foutline","2.api\u002F1.pmndrs\u002Foutline",{"title":113,"path":114,"stem":115},"Pixelation","\u002Fapi\u002Fpmndrs\u002Fpixelation","2.api\u002F1.pmndrs\u002Fpixelation",{"title":117,"path":118,"stem":119},"Scanline","\u002Fapi\u002Fpmndrs\u002Fscanline","2.api\u002F1.pmndrs\u002Fscanline",{"title":121,"path":122,"stem":123},"Sepia","\u002Fapi\u002Fpmndrs\u002Fsepia","2.api\u002F1.pmndrs\u002Fsepia",{"title":125,"path":126,"stem":127},"Shock Wave","\u002Fapi\u002Fpmndrs\u002Fshock-wave","2.api\u002F1.pmndrs\u002Fshock-wave",{"title":129,"path":130,"stem":131},"SMAA","\u002Fapi\u002Fpmndrs\u002Fsmaa","2.api\u002F1.pmndrs\u002Fsmaa",{"title":133,"path":134,"stem":135},"Texture","\u002Fapi\u002Fpmndrs\u002Ftexture","2.api\u002F1.pmndrs\u002Ftexture",{"title":137,"path":138,"stem":139},"Tilt Shift","\u002Fapi\u002Fpmndrs\u002Ftilt-shift","2.api\u002F1.pmndrs\u002Ftilt-shift",{"title":141,"path":142,"stem":143},"ToneMapping","\u002Fapi\u002Fpmndrs\u002Ftone-mapping","2.api\u002F1.pmndrs\u002Ftone-mapping",{"title":145,"path":146,"stem":147},"Vignette","\u002Fapi\u002Fpmndrs\u002Fvignette","2.api\u002F1.pmndrs\u002Fvignette",{"title":149,"path":150,"stem":151,"children":152},"Three Native Effects","\u002Fapi\u002Fthree","2.api\u002F2.three\u002Findex",[153,154,157,161,164,168,171,174],{"title":149,"path":150,"stem":151},{"title":73,"path":155,"stem":156},"\u002Fapi\u002Fthree\u002Fglitch","2.api\u002F2.three\u002Fglitch",{"title":158,"path":159,"stem":160},"Halftone","\u002Fapi\u002Fthree\u002Fhalftone","2.api\u002F2.three\u002Fhalftone",{"title":101,"path":162,"stem":163},"\u002Fapi\u002Fthree\u002Fn8ao","2.api\u002F2.three\u002Fn8ao",{"title":165,"path":166,"stem":167},"Output","\u002Fapi\u002Fthree\u002Foutput","2.api\u002F2.three\u002Foutput",{"title":113,"path":169,"stem":170},"\u002Fapi\u002Fthree\u002Fpixelation","2.api\u002F2.three\u002Fpixelation",{"title":129,"path":172,"stem":173},"\u002Fapi\u002Fthree\u002Fsmaa","2.api\u002F2.three\u002Fsmaa",{"title":175,"path":176,"stem":177},"Unreal Bloom","\u002Fapi\u002Fthree\u002Funreal-bloom","2.api\u002F2.three\u002Funreal-bloom",{"title":179,"path":180,"stem":181,"children":182},"WebGPU","\u002Fapi\u002Fwebgpu","2.api\u002F3.webgpu\u002Findex",[183,184,187,190,193,197,200],{"title":179,"path":180,"stem":181},{"title":37,"path":185,"stem":186},"\u002Fapi\u002Fwebgpu\u002Fbloom","2.api\u002F3.webgpu\u002Fbloom",{"title":45,"path":188,"stem":189},"\u002Fapi\u002Fwebgpu\u002Fchromatic-aberration","2.api\u002F3.webgpu\u002Fchromatic-aberration",{"title":57,"path":191,"stem":192},"\u002Fapi\u002Fwebgpu\u002Fdepth-of-field","2.api\u002F3.webgpu\u002Fdepth-of-field",{"title":194,"path":195,"stem":196},"Film","\u002Fapi\u002Fwebgpu\u002Ffilm","2.api\u002F3.webgpu\u002Ffilm",{"title":69,"path":198,"stem":199},"\u002Fapi\u002Fwebgpu\u002Ffxaa","2.api\u002F3.webgpu\u002Ffxaa",{"title":129,"path":201,"stem":202},"\u002Fapi\u002Fwebgpu\u002Fsmaa","2.api\u002F3.webgpu\u002Fsmaa",{"title":204,"path":205,"stem":206,"children":207},"Advanced","\u002Fadvanced","3.advanced\u002Findex",[208,209],{"title":204,"path":205,"stem":206},{"title":210,"path":211,"stem":212},"You might not need post-processing","\u002Fadvanced\u002Fyou-might-not-need-post-processing","3.advanced\u002Fyou-might-not-need-post-processing",{"id":214,"title":45,"body":215,"description":690,"extension":691,"links":692,"meta":693,"navigation":364,"path":188,"seo":694,"stem":189,"__hash__":695},"docs\u002F2.api\u002F3.webgpu\u002Fchromatic-aberration.md",{"type":216,"value":217,"toc":684},"minimark",[218,224,236,244,249,491,495,573,577,605,667,671,680],[219,220,221],"docs-demo",{},[222,223],"webgpu-chromatic-aberration",{},[225,226,227,231,232,235],"p",{},[228,229,230],"code",{},"ChromaticAberration"," moves the red, green and blue channels apart, more towards the edges of the screen, like a cheap lens. It wraps three's ",[228,233,234],{},"ChromaticAberrationNode",".",[225,237,238,239,243],{},"It is an ",[240,241,242],"strong",{},"HDR"," effect, so it runs before tone mapping, like a lens in front of the camera.",[245,246,248],"h2",{"id":247},"usage","Usage",[250,251,256],"pre",{"className":252,"code":253,"language":254,"meta":255,"style":255},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nimport { TresCanvas } from '@tresjs\u002Fcore\u002Fwebgpu'\nimport { ChromaticAberration, EffectComposer } from '@tresjs\u002Fpost-processing\u002Fwebgpu'\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CTresCanvas>\n    \u003C!-- Your scene -->\n\n    \u003CEffectComposer>\n      \u003CChromaticAberration :strength=\"1.5\" :center=\"[0.5, 0.5]\" \u002F>\n    \u003C\u002FEffectComposer>\n  \u003C\u002FTresCanvas>\n\u003C\u002Ftemplate>\n","vue","",[228,257,258,293,322,349,359,366,376,387,394,399,410,462,472,482],{"__ignoreMap":255},[259,260,263,267,271,275,278,281,284,288,290],"span",{"class":261,"line":262},"line",1,[259,264,266],{"class":265},"sMK4o","\u003C",[259,268,270],{"class":269},"swJcz","script",[259,272,274],{"class":273},"spNyl"," setup",[259,276,277],{"class":273}," lang",[259,279,280],{"class":265},"=",[259,282,283],{"class":265},"\"",[259,285,287],{"class":286},"sfazB","ts",[259,289,283],{"class":265},[259,291,292],{"class":265},">\n",[259,294,296,300,303,307,310,313,316,319],{"class":261,"line":295},2,[259,297,299],{"class":298},"s7zQu","import",[259,301,302],{"class":265}," {",[259,304,306],{"class":305},"sTEyZ"," TresCanvas",[259,308,309],{"class":265}," }",[259,311,312],{"class":298}," from",[259,314,315],{"class":265}," '",[259,317,318],{"class":286},"@tresjs\u002Fcore\u002Fwebgpu",[259,320,321],{"class":265},"'\n",[259,323,325,327,329,332,335,338,340,342,344,347],{"class":261,"line":324},3,[259,326,299],{"class":298},[259,328,302],{"class":265},[259,330,331],{"class":305}," ChromaticAberration",[259,333,334],{"class":265},",",[259,336,337],{"class":305}," EffectComposer",[259,339,309],{"class":265},[259,341,312],{"class":298},[259,343,315],{"class":265},[259,345,346],{"class":286},"@tresjs\u002Fpost-processing\u002Fwebgpu",[259,348,321],{"class":265},[259,350,352,355,357],{"class":261,"line":351},4,[259,353,354],{"class":265},"\u003C\u002F",[259,356,270],{"class":269},[259,358,292],{"class":265},[259,360,362],{"class":261,"line":361},5,[259,363,365],{"emptyLinePlaceholder":364},true,"\n",[259,367,369,371,374],{"class":261,"line":368},6,[259,370,266],{"class":265},[259,372,373],{"class":269},"template",[259,375,292],{"class":265},[259,377,379,382,385],{"class":261,"line":378},7,[259,380,381],{"class":265},"  \u003C",[259,383,384],{"class":269},"TresCanvas",[259,386,292],{"class":265},[259,388,390],{"class":261,"line":389},8,[259,391,393],{"class":392},"sHwdD","    \u003C!-- Your scene -->\n",[259,395,397],{"class":261,"line":396},9,[259,398,365],{"emptyLinePlaceholder":364},[259,400,402,405,408],{"class":261,"line":401},10,[259,403,404],{"class":265},"    \u003C",[259,406,407],{"class":269},"EffectComposer",[259,409,292],{"class":265},[259,411,413,416,418,421,424,426,428,432,434,436,439,441,443,446,449,452,454,457,459],{"class":261,"line":412},11,[259,414,415],{"class":265},"      \u003C",[259,417,230],{"class":269},[259,419,420],{"class":265}," :",[259,422,423],{"class":273},"strength",[259,425,280],{"class":265},[259,427,283],{"class":265},[259,429,431],{"class":430},"sbssI","1.5",[259,433,283],{"class":265},[259,435,420],{"class":265},[259,437,438],{"class":273},"center",[259,440,280],{"class":265},[259,442,283],{"class":265},[259,444,445],{"class":265},"[",[259,447,448],{"class":430},"0.5",[259,450,451],{"class":265},", ",[259,453,448],{"class":430},[259,455,456],{"class":265},"]",[259,458,283],{"class":265},[259,460,461],{"class":265}," \u002F>\n",[259,463,465,468,470],{"class":261,"line":464},12,[259,466,467],{"class":265},"    \u003C\u002F",[259,469,407],{"class":269},[259,471,292],{"class":265},[259,473,475,478,480],{"class":261,"line":474},13,[259,476,477],{"class":265},"  \u003C\u002F",[259,479,384],{"class":269},[259,481,292],{"class":265},[259,483,485,487,489],{"class":261,"line":484},14,[259,486,354],{"class":265},[259,488,373],{"class":269},[259,490,292],{"class":265},[245,492,494],{"id":493},"props","Props",[496,497,498,514],"table",{},[499,500,501],"thead",{},[502,503,504,508,511],"tr",{},[505,506,507],"th",{},"Prop",[505,509,510],{},"Description",[505,512,513],{},"Default",[515,516,517,532,558],"tbody",{},[502,518,519,524,527],{},[520,521,522],"td",{},[228,523,423],{},[520,525,526],{},"The strength of the channel split.",[520,528,529],{},[228,530,531],{},"1",[502,533,534,538,553],{},[520,535,536],{},[228,537,438],{},[520,539,540,541,544,545,548,549,552],{},"The center of the effect in screen UV, from ",[228,542,543],{},"[0, 0]"," to ",[228,546,547],{},"[1, 1]",". A ",[228,550,551],{},"Vector2"," or a tuple.",[520,554,555],{},[228,556,557],{},"[0.5, 0.5]",[502,559,560,565,568],{},[520,561,562],{},[228,563,564],{},"scale",[520,566,567],{},"The scale step between the color channels.",[520,569,570],{},[228,571,572],{},"1.1",[245,574,576],{"id":575},"differences-from-chromaticaberrationpmndrs","Differences from ChromaticAberrationPmndrs",[225,578,579,580,583,584,587,588,590,591,593,594,451,596,598,599,601,602,604],{},"The two effects use different models. ",[228,581,582],{},"ChromaticAberrationPmndrs"," moves the channels by a fixed ",[228,585,586],{},"offset",". Three's ",[228,589,234],{}," scales the red and blue channels away from ",[228,592,438],{},", so the split grows towards the edges of the screen. Its parameters are ",[228,595,423],{},[228,597,438],{}," and ",[228,600,564],{},", and ",[228,603,230],{}," exposes all of them.",[496,606,607,618],{},[499,608,609],{},[502,610,611,615],{},[505,612,613],{},[228,614,582],{},[505,616,617],{},"Why it is not available",[515,619,620,635,652],{},[502,621,622,626],{},[520,623,624],{},[228,625,586],{},[520,627,628,630,631,598,633,235],{},[228,629,234],{}," has no fixed offset. Use ",[228,632,423],{},[228,634,564],{},[502,636,637,645],{},[520,638,639,451,642],{},[228,640,641],{},"radialModulation",[228,643,644],{},"modulationOffset",[520,646,647,649,650,235],{},[228,648,234],{}," is always radial, from ",[228,651,438],{},[502,653,654,659],{},[520,655,656],{},[228,657,658],{},"blendFunction",[520,660,661,662,235],{},"The WebGPU family has no blend functions. See ",[663,664,666],"a",{"href":665},"\u002Fapi\u002Fwebgpu#blending","Blending",[245,668,670],{"id":669},"further-reading","Further Reading",[225,672,673,674,235],{},"See the ",[663,675,679],{"href":676,"rel":677},"https:\u002F\u002Fthreejs.org\u002Fexamples\u002F?q=chromatic#webgpu_postprocessing_ca",[678],"nofollow","three.js example",[681,682,683],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":255,"searchDepth":262,"depth":295,"links":685},[686,687,688,689],{"id":247,"depth":295,"text":248},{"id":493,"depth":295,"text":494},{"id":575,"depth":295,"text":576},{"id":669,"depth":295,"text":670},"Split the color channels towards the edges of the screen.","md",null,{},{"title":45,"description":690},"1rUB_eO8oiN6cBHRkBE3WAt49WQidFd98rWS0al07Rc",[697,699],{"title":37,"path":185,"stem":186,"description":698,"children":-1},"Add a glow around the bright areas of the scene.",{"title":57,"path":191,"stem":192,"description":700,"children":-1},"Blur the scene in front of and behind the focus distance.",1795084225279]