[{"data":1,"prerenderedAt":647},["ShallowReactive",2],{"navigation":3,"\u002Fapi\u002Fwebgpu\u002Fsmaa":213,"\u002Fapi\u002Fwebgpu\u002Fsmaa-surround":642},[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":129,"body":215,"description":636,"extension":637,"links":638,"meta":639,"navigation":380,"path":201,"seo":640,"stem":202,"__hash__":641},"docs\u002F2.api\u002F3.webgpu\u002Fsmaa.md",{"type":216,"value":217,"toc":630},"minimark",[218,224,239,253,258,265,481,485,490,494,514,613,617,626],[219,220,221],"docs-demo",{},[222,223],"webgpu-smaa",{},[225,226,227,230,231,234,235,238],"p",{},[228,229,129],"code",{}," (subpixel morphological anti-aliasing) finds the edges in the image and blends along them. It keeps edges sharper than ",[232,233,69],"a",{"href":198},", for a higher cost. It wraps three's ",[228,236,237],{},"SMAANode",".",[225,240,241,242,246,247,249,250,252],{},"It is an ",[243,244,245],"strong",{},"LDR"," effect. It runs after tone mapping, so it finds the edges you see and keeps bright HDR edges smooth. LDR effects run in slot order, so put ",[228,248,129],{}," before ",[228,251,194],{}," to keep the grain sharp.",[254,255,257],"h2",{"id":256},"usage","Usage",[225,259,260,261,264],{},"Turn off the canvas ",[228,262,263],{},"antialias"," when you use SMAA, so the edges are not anti-aliased twice.",[266,267,272],"pre",{"className":268,"code":269,"language":270,"meta":271,"style":271},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nimport { TresCanvas } from '@tresjs\u002Fcore\u002Fwebgpu'\nimport { EffectComposer, SMAA } from '@tresjs\u002Fpost-processing\u002Fwebgpu'\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CTresCanvas :antialias=\"false\">\n    \u003C!-- Your scene -->\n\n    \u003CEffectComposer>\n      \u003CSMAA \u002F>\n    \u003C\u002FEffectComposer>\n  \u003C\u002FTresCanvas>\n\u003C\u002Ftemplate>\n","vue","",[228,273,274,309,338,365,375,382,392,418,425,430,441,452,462,472],{"__ignoreMap":271},[275,276,279,283,287,291,294,297,300,304,306],"span",{"class":277,"line":278},"line",1,[275,280,282],{"class":281},"sMK4o","\u003C",[275,284,286],{"class":285},"swJcz","script",[275,288,290],{"class":289},"spNyl"," setup",[275,292,293],{"class":289}," lang",[275,295,296],{"class":281},"=",[275,298,299],{"class":281},"\"",[275,301,303],{"class":302},"sfazB","ts",[275,305,299],{"class":281},[275,307,308],{"class":281},">\n",[275,310,312,316,319,323,326,329,332,335],{"class":277,"line":311},2,[275,313,315],{"class":314},"s7zQu","import",[275,317,318],{"class":281}," {",[275,320,322],{"class":321},"sTEyZ"," TresCanvas",[275,324,325],{"class":281}," }",[275,327,328],{"class":314}," from",[275,330,331],{"class":281}," '",[275,333,334],{"class":302},"@tresjs\u002Fcore\u002Fwebgpu",[275,336,337],{"class":281},"'\n",[275,339,341,343,345,348,351,354,356,358,360,363],{"class":277,"line":340},3,[275,342,315],{"class":314},[275,344,318],{"class":281},[275,346,347],{"class":321}," EffectComposer",[275,349,350],{"class":281},",",[275,352,353],{"class":321}," SMAA",[275,355,325],{"class":281},[275,357,328],{"class":314},[275,359,331],{"class":281},[275,361,362],{"class":302},"@tresjs\u002Fpost-processing\u002Fwebgpu",[275,364,337],{"class":281},[275,366,368,371,373],{"class":277,"line":367},4,[275,369,370],{"class":281},"\u003C\u002F",[275,372,286],{"class":285},[275,374,308],{"class":281},[275,376,378],{"class":277,"line":377},5,[275,379,381],{"emptyLinePlaceholder":380},true,"\n",[275,383,385,387,390],{"class":277,"line":384},6,[275,386,282],{"class":281},[275,388,389],{"class":285},"template",[275,391,308],{"class":281},[275,393,395,398,401,404,406,408,410,414,416],{"class":277,"line":394},7,[275,396,397],{"class":281},"  \u003C",[275,399,400],{"class":285},"TresCanvas",[275,402,403],{"class":281}," :",[275,405,263],{"class":289},[275,407,296],{"class":281},[275,409,299],{"class":281},[275,411,413],{"class":412},"sfNiH","false",[275,415,299],{"class":281},[275,417,308],{"class":281},[275,419,421],{"class":277,"line":420},8,[275,422,424],{"class":423},"sHwdD","    \u003C!-- Your scene -->\n",[275,426,428],{"class":277,"line":427},9,[275,429,381],{"emptyLinePlaceholder":380},[275,431,433,436,439],{"class":277,"line":432},10,[275,434,435],{"class":281},"    \u003C",[275,437,438],{"class":285},"EffectComposer",[275,440,308],{"class":281},[275,442,444,447,449],{"class":277,"line":443},11,[275,445,446],{"class":281},"      \u003C",[275,448,129],{"class":285},[275,450,451],{"class":281}," \u002F>\n",[275,453,455,458,460],{"class":277,"line":454},12,[275,456,457],{"class":281},"    \u003C\u002F",[275,459,438],{"class":285},[275,461,308],{"class":281},[275,463,465,468,470],{"class":277,"line":464},13,[275,466,467],{"class":281},"  \u003C\u002F",[275,469,400],{"class":285},[275,471,308],{"class":281},[275,473,475,477,479],{"class":277,"line":474},14,[275,476,370],{"class":281},[275,478,389],{"class":285},[275,480,308],{"class":281},[254,482,484],{"id":483},"props","Props",[225,486,487,489],{},[228,488,129],{}," has no props. It reads the size of the image every frame.",[254,491,493],{"id":492},"differences-from-smaa-and-smaapmndrs","Differences from SMAA and SMAAPmndrs",[225,495,496,498,499,501,502,505,506,509,510,513],{},[228,497,129],{}," has no props, because three's ",[228,500,237],{}," takes no parameters. It uses the same settings as the ",[228,503,504],{},"SMAAPmndrs"," defaults: the ",[228,507,508],{},"MEDIUM"," preset (edge threshold ",[228,511,512],{},"0.1",", 8 search steps) and color edge detection.",[515,516,517,530],"table",{},[518,519,520],"thead",{},[521,522,523,527],"tr",{},[524,525,526],"th",{},"Prop",[524,528,529],{},"Why it is not available",[531,532,533,554,572,584,596],"tbody",{},[521,534,535,549],{},[536,537,538,541,542,545,546,548],"td",{},[228,539,540],{},"width",", ",[228,543,544],{},"height"," (three family ",[228,547,129],{},")",[536,550,551,553],{},[228,552,237],{}," reads the size of the image every frame, so you do not set it.",[521,555,556,561],{},[536,557,558],{},[228,559,560],{},"preset",[536,562,563,565,566,568,569,571],{},[228,564,237],{}," uses fixed ",[228,567,508],{}," values (edge threshold ",[228,570,512],{},", 8 search steps).",[521,573,574,579],{},[536,575,576],{},[228,577,578],{},"edgeDetectionMode",[536,580,581,583],{},[228,582,237],{}," always detects edges from the color.",[521,585,586,591],{},[536,587,588],{},[228,589,590],{},"predicationMode",[536,592,593,595],{},[228,594,237],{}," has no predication.",[521,597,598,606],{},[536,599,600,541,603],{},[228,601,602],{},"opacity",[228,604,605],{},"blendFunction",[536,607,608,609,238],{},"The WebGPU family has no blend functions. See ",[232,610,612],{"href":611},"\u002Fapi\u002Fwebgpu#blending","Blending",[254,614,616],{"id":615},"further-reading","Further Reading",[225,618,619,620,238],{},"See the ",[232,621,625],{"href":622,"rel":623},"https:\u002F\u002Fthreejs.org\u002Fexamples\u002F?q=smaa#webgpu_postprocessing_smaa",[624],"nofollow","three.js example",[627,628,629],"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 .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}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 .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":271,"searchDepth":278,"depth":311,"links":631},[632,633,634,635],{"id":256,"depth":311,"text":257},{"id":483,"depth":311,"text":484},{"id":492,"depth":311,"text":493},{"id":615,"depth":311,"text":616},"Subpixel morphological anti-aliasing for the WebGPU composer.","md",null,{},{"title":129,"description":636},"92sT_3-xcDDA-qbEVws56IM4nYUtf_Auq0mypEFvUn0",[643,645],{"title":69,"path":198,"stem":199,"description":644,"children":-1},"Fast approximate anti-aliasing for the WebGPU composer.",{"title":204,"path":205,"stem":206,"description":646,"children":-1},"Performance considerations and advanced topics.",1795084222746]