[{"data":1,"prerenderedAt":776},["ShallowReactive",2],{"navigation":3,"\u002Fapi\u002Fwebgpu\u002Fbloom":213,"\u002Fapi\u002Fwebgpu\u002Fbloom-surround":771},[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":37,"body":215,"description":765,"extension":766,"links":767,"meta":768,"navigation":381,"path":185,"seo":769,"stem":186,"__hash__":770},"docs\u002F2.api\u002F3.webgpu\u002Fbloom.md",{"type":216,"value":217,"toc":759},"minimark",[218,224,235,254,261,266,510,514,603,607,629,742,746,755],[219,220,221],"docs-demo",{},[222,223],"webgpu-bloom",{},[225,226,227,230,231,234],"p",{},[228,229,37],"code",{}," adds a blurred copy of the bright areas of the scene to the image. It wraps three's ",[228,232,233],{},"BloomNode",".",[225,236,237,238,242,243,246,247,250,251,253],{},"It is an ",[239,240,241],"strong",{},"HDR"," effect. It runs on linear scene colors, before tone mapping, so colors above ",[228,244,245],{},"1"," (such as an ",[228,248,249],{},"emissiveIntensity"," above ",[228,252,245],{},") glow more.",[225,255,256,257,260],{},"On a canvas with ",[228,258,259],{},"alpha",", the glow adds to the color but not to the alpha. Do not rely on the glow over a transparent pixel: three r186 and newer hide it, and with older versions the result depends on the browser.",[262,263,265],"h2",{"id":264},"usage","Usage",[267,268,273],"pre",{"className":269,"code":270,"language":271,"meta":272,"style":272},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nimport { TresCanvas } from '@tresjs\u002Fcore\u002Fwebgpu'\nimport { Bloom, EffectComposer } from '@tresjs\u002Fpost-processing\u002Fwebgpu'\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CTresCanvas>\n    \u003C!-- Your scene -->\n\n    \u003CEffectComposer>\n      \u003CBloom :strength=\"1\" :radius=\"0.4\" :threshold=\"0.8\" \u002F>\n    \u003C\u002FEffectComposer>\n  \u003C\u002FTresCanvas>\n\u003C\u002Ftemplate>\n","vue","",[228,274,275,310,339,366,376,383,393,404,411,416,427,481,491,501],{"__ignoreMap":272},[276,277,280,284,288,292,295,298,301,305,307],"span",{"class":278,"line":279},"line",1,[276,281,283],{"class":282},"sMK4o","\u003C",[276,285,287],{"class":286},"swJcz","script",[276,289,291],{"class":290},"spNyl"," setup",[276,293,294],{"class":290}," lang",[276,296,297],{"class":282},"=",[276,299,300],{"class":282},"\"",[276,302,304],{"class":303},"sfazB","ts",[276,306,300],{"class":282},[276,308,309],{"class":282},">\n",[276,311,313,317,320,324,327,330,333,336],{"class":278,"line":312},2,[276,314,316],{"class":315},"s7zQu","import",[276,318,319],{"class":282}," {",[276,321,323],{"class":322},"sTEyZ"," TresCanvas",[276,325,326],{"class":282}," }",[276,328,329],{"class":315}," from",[276,331,332],{"class":282}," '",[276,334,335],{"class":303},"@tresjs\u002Fcore\u002Fwebgpu",[276,337,338],{"class":282},"'\n",[276,340,342,344,346,349,352,355,357,359,361,364],{"class":278,"line":341},3,[276,343,316],{"class":315},[276,345,319],{"class":282},[276,347,348],{"class":322}," Bloom",[276,350,351],{"class":282},",",[276,353,354],{"class":322}," EffectComposer",[276,356,326],{"class":282},[276,358,329],{"class":315},[276,360,332],{"class":282},[276,362,363],{"class":303},"@tresjs\u002Fpost-processing\u002Fwebgpu",[276,365,338],{"class":282},[276,367,369,372,374],{"class":278,"line":368},4,[276,370,371],{"class":282},"\u003C\u002F",[276,373,287],{"class":286},[276,375,309],{"class":282},[276,377,379],{"class":278,"line":378},5,[276,380,382],{"emptyLinePlaceholder":381},true,"\n",[276,384,386,388,391],{"class":278,"line":385},6,[276,387,283],{"class":282},[276,389,390],{"class":286},"template",[276,392,309],{"class":282},[276,394,396,399,402],{"class":278,"line":395},7,[276,397,398],{"class":282},"  \u003C",[276,400,401],{"class":286},"TresCanvas",[276,403,309],{"class":282},[276,405,407],{"class":278,"line":406},8,[276,408,410],{"class":409},"sHwdD","    \u003C!-- Your scene -->\n",[276,412,414],{"class":278,"line":413},9,[276,415,382],{"emptyLinePlaceholder":381},[276,417,419,422,425],{"class":278,"line":418},10,[276,420,421],{"class":282},"    \u003C",[276,423,424],{"class":286},"EffectComposer",[276,426,309],{"class":282},[276,428,430,433,435,438,441,443,445,448,450,452,455,457,459,462,464,466,469,471,473,476,478],{"class":278,"line":429},11,[276,431,432],{"class":282},"      \u003C",[276,434,37],{"class":286},[276,436,437],{"class":282}," :",[276,439,440],{"class":290},"strength",[276,442,297],{"class":282},[276,444,300],{"class":282},[276,446,245],{"class":447},"sbssI",[276,449,300],{"class":282},[276,451,437],{"class":282},[276,453,454],{"class":290},"radius",[276,456,297],{"class":282},[276,458,300],{"class":282},[276,460,461],{"class":447},"0.4",[276,463,300],{"class":282},[276,465,437],{"class":282},[276,467,468],{"class":290},"threshold",[276,470,297],{"class":282},[276,472,300],{"class":282},[276,474,475],{"class":447},"0.8",[276,477,300],{"class":282},[276,479,480],{"class":282}," \u002F>\n",[276,482,484,487,489],{"class":278,"line":483},12,[276,485,486],{"class":282},"    \u003C\u002F",[276,488,424],{"class":286},[276,490,309],{"class":282},[276,492,494,497,499],{"class":278,"line":493},13,[276,495,496],{"class":282},"  \u003C\u002F",[276,498,401],{"class":286},[276,500,309],{"class":282},[276,502,504,506,508],{"class":278,"line":503},14,[276,505,371],{"class":282},[276,507,390],{"class":286},[276,509,309],{"class":282},[262,511,513],{"id":512},"props","Props",[515,516,517,533],"table",{},[518,519,520],"thead",{},[521,522,523,527,530],"tr",{},[524,525,526],"th",{},"Prop",[524,528,529],{},"Description",[524,531,532],{},"Default",[534,535,536,550,567,583],"tbody",{},[521,537,538,543,546],{},[539,540,541],"td",{},[228,542,440],{},[539,544,545],{},"The strength of the glow.",[539,547,548],{},[228,549,245],{},[521,551,552,556,562],{},[539,553,554],{},[228,555,454],{},[539,557,558,559,234],{},"How far the glow spreads. Range is ",[276,560,561],{},"0, 1",[539,563,564],{},[228,565,566],{},"0",[521,568,569,573,579],{},[539,570,571],{},[228,572,468],{},[539,574,575,576,578],{},"The luminance above which a pixel glows. ",[228,577,566],{}," makes every pixel glow.",[539,580,581],{},[228,582,566],{},[521,584,585,590,598],{},[539,586,587],{},[228,588,589],{},"smoothWidth",[539,591,592,593,595,596,234],{},"The width of the soft transition above ",[228,594,468],{},". Higher values fade the glow in more gradually. Keep it above ",[228,597,566],{},[539,599,600],{},[228,601,602],{},"0.01",[262,604,606],{"id":605},"differences-from-bloompmndrs","Differences from BloomPmndrs",[225,608,609,611,612,615,616,618,619,621,622,625,626,628],{},[228,610,37],{}," exposes the parameters of three's ",[228,613,614],{},"bloom()"," function and the ",[228,617,589],{}," uniform of ",[228,620,233],{},". Some ",[228,623,624],{},"BloomPmndrs"," props have no counterpart, because ",[228,627,233],{}," uses fixed values for them.",[515,630,631,643],{},[518,632,633],{},[521,634,635,639],{},[524,636,637],{},[228,638,624],{},[524,640,641],{},[228,642,37],{},[534,644,645,656,667,681,694,706,727],{},[521,646,647,652],{},[539,648,649],{},[228,650,651],{},"intensity",[539,653,654],{},[228,655,440],{},[521,657,658,663],{},[539,659,660],{},[228,661,662],{},"luminanceThreshold",[539,664,665],{},[228,666,468],{},[521,668,669,673],{},[539,670,671],{},[228,672,454],{},[539,674,675,677,678,680],{},[228,676,454],{},". Always active, because ",[228,679,233],{}," always blurs with mipmaps.",[521,682,683,688],{},[539,684,685],{},[228,686,687],{},"mipmapBlur",[539,689,690,691,693],{},"Not available. ",[228,692,233],{}," always blurs 5 mip levels.",[521,695,696,701],{},[539,697,698],{},[228,699,700],{},"kernelSize",[539,702,690,703,705],{},[228,704,233],{}," uses fixed kernel sizes (6, 10, 14, 18 and 22) for its 5 mip levels.",[521,707,708,713],{},[539,709,710],{},[228,711,712],{},"luminanceSmoothing",[539,714,715,717,718,720,721,723,724,234],{},[228,716,589],{},". Same role, with the ",[228,719,233],{}," default of ",[228,722,602],{}," instead of ",[228,725,726],{},"0.025",[521,728,729,734],{},[539,730,731],{},[228,732,733],{},"blendFunction",[539,735,736,737,234],{},"Not available. The WebGPU family has no blend functions. See ",[738,739,741],"a",{"href":740},"\u002Fapi\u002Fwebgpu#blending","Blending",[262,743,745],{"id":744},"further-reading","Further Reading",[225,747,748,749,234],{},"See the ",[738,750,754],{"href":751,"rel":752},"https:\u002F\u002Fthreejs.org\u002Fexamples\u002F?q=bloom#webgpu_postprocessing_bloom",[753],"nofollow","three.js example",[756,757,758],"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":272,"searchDepth":279,"depth":312,"links":760},[761,762,763,764],{"id":264,"depth":312,"text":265},{"id":512,"depth":312,"text":513},{"id":605,"depth":312,"text":606},{"id":744,"depth":312,"text":745},"Add a glow around the bright areas of the scene.","md",null,{},{"title":37,"description":765},"aqxgFWcYDWIINbHbmT-8E9P6r6qK4sVtl8pRa4i3xPU",[772,774],{"title":179,"path":180,"stem":181,"description":773,"children":-1},"EffectComposer, defineEffect and the built-in effects for the WebGPU TresCanvas.",{"title":45,"path":188,"stem":189,"description":775,"children":-1},"Split the color channels towards the edges of the screen.",1795084225200]