[{"data":1,"prerenderedAt":588},["ShallowReactive",2],{"navigation":3,"/api/pmndrs/vignette":181,"/api/pmndrs/vignette-surround":583},[4,14,171],{"title":5,"path":6,"stem":7,"children":8},"Introduction","/getting-started","1.getting-started/1.index",[9,10],{"title":5,"path":6,"stem":7},{"title":11,"path":12,"stem":13},"Installation","/getting-started/installation","1.getting-started/2.installation",{"title":15,"path":16,"stem":17,"children":18},"Api","/api","2.api",[19,22,144],{"title":20,"path":16,"stem":21},"API Reference","2.api/index",{"title":23,"path":24,"stem":25,"children":26},"Pmndrs Effects","/api/pmndrs","2.api/1.pmndrs/index",[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],{"title":23,"path":24,"stem":25},{"title":29,"path":30,"stem":31},"ASCII","/api/pmndrs/ascii","2.api/1.pmndrs/ascii",{"title":33,"path":34,"stem":35},"Barrel Blur","/api/pmndrs/barrel-blur","2.api/1.pmndrs/barrel-blur",{"title":37,"path":38,"stem":39},"Bloom","/api/pmndrs/bloom","2.api/1.pmndrs/bloom",{"title":41,"path":42,"stem":43},"Brightness & Contrast","/api/pmndrs/brightness-contrast","2.api/1.pmndrs/brightness-contrast",{"title":45,"path":46,"stem":47},"Chromatic Aberration","/api/pmndrs/chromatic-aberration","2.api/1.pmndrs/chromatic-aberration",{"title":49,"path":50,"stem":51},"Color Average","/api/pmndrs/color-average","2.api/1.pmndrs/color-average",{"title":53,"path":54,"stem":55},"Color Depth","/api/pmndrs/color-depth","2.api/1.pmndrs/color-depth",{"title":57,"path":58,"stem":59},"Depth of Field","/api/pmndrs/depth-of-field","2.api/1.pmndrs/depth-of-field",{"title":61,"path":62,"stem":63},"Dot Screen","/api/pmndrs/dot-screen","2.api/1.pmndrs/dot-screen",{"title":65,"path":66,"stem":67},"Fish Eye","/api/pmndrs/fish-eye","2.api/1.pmndrs/fish-eye",{"title":69,"path":70,"stem":71},"FXAA","/api/pmndrs/fxaa","2.api/1.pmndrs/fxaa",{"title":73,"path":74,"stem":75},"Glitch","/api/pmndrs/glitch","2.api/1.pmndrs/glitch",{"title":77,"path":78,"stem":79},"God Rays","/api/pmndrs/god-rays","2.api/1.pmndrs/god-rays",{"title":81,"path":82,"stem":83},"Grid","/api/pmndrs/grid","2.api/1.pmndrs/grid",{"title":85,"path":86,"stem":87},"Hue & Saturation","/api/pmndrs/hue-saturation","2.api/1.pmndrs/hue-saturation",{"title":89,"path":90,"stem":91},"Kuwahara","/api/pmndrs/kuwahara","2.api/1.pmndrs/kuwahara",{"title":93,"path":94,"stem":95},"Lens Distortion","/api/pmndrs/lens-distortion","2.api/1.pmndrs/lens-distortion",{"title":97,"path":98,"stem":99},"Linocut","/api/pmndrs/linocut","2.api/1.pmndrs/linocut",{"title":101,"path":102,"stem":103},"Noise","/api/pmndrs/noise","2.api/1.pmndrs/noise",{"title":105,"path":106,"stem":107},"Outline","/api/pmndrs/outline","2.api/1.pmndrs/outline",{"title":109,"path":110,"stem":111},"Pixelation","/api/pmndrs/pixelation","2.api/1.pmndrs/pixelation",{"title":113,"path":114,"stem":115},"Scanline","/api/pmndrs/scanline","2.api/1.pmndrs/scanline",{"title":117,"path":118,"stem":119},"Sepia","/api/pmndrs/sepia","2.api/1.pmndrs/sepia",{"title":121,"path":122,"stem":123},"Shock Wave","/api/pmndrs/shock-wave","2.api/1.pmndrs/shock-wave",{"title":125,"path":126,"stem":127},"SMAA","/api/pmndrs/smaa","2.api/1.pmndrs/smaa",{"title":129,"path":130,"stem":131},"Texture","/api/pmndrs/texture","2.api/1.pmndrs/texture",{"title":133,"path":134,"stem":135},"Tilt Shift","/api/pmndrs/tilt-shift","2.api/1.pmndrs/tilt-shift",{"title":137,"path":138,"stem":139},"ToneMapping","/api/pmndrs/tone-mapping","2.api/1.pmndrs/tone-mapping",{"title":141,"path":142,"stem":143},"Vignette","/api/pmndrs/vignette","2.api/1.pmndrs/vignette",{"title":145,"path":146,"stem":147,"children":148},"Three Native Effects","/api/three","2.api/2.three/index",[149,150,153,157,161,164,167],{"title":145,"path":146,"stem":147},{"title":73,"path":151,"stem":152},"/api/three/glitch","2.api/2.three/glitch",{"title":154,"path":155,"stem":156},"Halftone","/api/three/halftone","2.api/2.three/halftone",{"title":158,"path":159,"stem":160},"Output","/api/three/output","2.api/2.three/output",{"title":109,"path":162,"stem":163},"/api/three/pixelation","2.api/2.three/pixelation",{"title":125,"path":165,"stem":166},"/api/three/smaa","2.api/2.three/smaa",{"title":168,"path":169,"stem":170},"Unreal Bloom","/api/three/unreal-bloom","2.api/2.three/unreal-bloom",{"title":172,"path":173,"stem":174,"children":175},"Advanced","/advanced","3.advanced/index",[176,177],{"title":172,"path":173,"stem":174},{"title":178,"path":179,"stem":180},"You might not need post-processing","/advanced/you-might-not-need-post-processing","3.advanced/you-might-not-need-post-processing",{"id":182,"title":141,"body":183,"description":577,"extension":578,"links":579,"meta":580,"navigation":297,"path":142,"seo":581,"stem":143,"__hash__":582},"docs/2.api/1.pmndrs/vignette.md",{"type":184,"value":185,"toc":572},"minimark",[186,193,197,202,467,471,553,557,568],[187,188,190],"docs-demo",{":controls":189},"false",[191,192],"pmndrs-vignette",{},[194,195,196],"p",{},"Vignette is an effect that darkens the edges of the scene to make the center pop.",[198,199,201],"h2",{"id":200},"usage","Usage",[203,204,209],"pre",{"className":205,"code":206,"language":207,"meta":208,"style":208},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nimport { EffectComposerPmndrs, VignettePmndrs } from '@tresjs/post-processing'\n\u003C/script>\n\n\u003Ctemplate>\n  \u003CTresCanvas>\n    \u003CTresPerspectiveCamera :position=\"[5, 5, 5]\" />\n\n    \u003C!-- Your scene -->\n\n    \u003CSuspense>\n      \u003CEffectComposerPmndrs>\n        \u003CVignettePmndrs\n          :darkness=\"0.9\"\n          :offset=\"0.2\"\n        />\n      \u003C/EffectComposerPmndrs>\n    \u003C/Suspense>\n  \u003C/TresCanvas>\n\u003C/template>\n","vue","",[210,211,212,247,282,292,299,309,320,344,349,356,361,371,382,391,407,422,428,438,448,458],"code",{"__ignoreMap":208},[213,214,217,221,225,229,232,235,238,242,244],"span",{"class":215,"line":216},"line",1,[213,218,220],{"class":219},"sMK4o","\u003C",[213,222,224],{"class":223},"swJcz","script",[213,226,228],{"class":227},"spNyl"," setup",[213,230,231],{"class":227}," lang",[213,233,234],{"class":219},"=",[213,236,237],{"class":219},"\"",[213,239,241],{"class":240},"sfazB","ts",[213,243,237],{"class":219},[213,245,246],{"class":219},">\n",[213,248,250,254,257,261,264,267,270,273,276,279],{"class":215,"line":249},2,[213,251,253],{"class":252},"s7zQu","import",[213,255,256],{"class":219}," {",[213,258,260],{"class":259},"sTEyZ"," EffectComposerPmndrs",[213,262,263],{"class":219},",",[213,265,266],{"class":259}," VignettePmndrs",[213,268,269],{"class":219}," }",[213,271,272],{"class":252}," from",[213,274,275],{"class":219}," '",[213,277,278],{"class":240},"@tresjs/post-processing",[213,280,281],{"class":219},"'\n",[213,283,285,288,290],{"class":215,"line":284},3,[213,286,287],{"class":219},"\u003C/",[213,289,224],{"class":223},[213,291,246],{"class":219},[213,293,295],{"class":215,"line":294},4,[213,296,298],{"emptyLinePlaceholder":297},true,"\n",[213,300,302,304,307],{"class":215,"line":301},5,[213,303,220],{"class":219},[213,305,306],{"class":223},"template",[213,308,246],{"class":219},[213,310,312,315,318],{"class":215,"line":311},6,[213,313,314],{"class":219},"  \u003C",[213,316,317],{"class":223},"TresCanvas",[213,319,246],{"class":219},[213,321,323,326,329,332,334,336,339,341],{"class":215,"line":322},7,[213,324,325],{"class":219},"    \u003C",[213,327,328],{"class":223},"TresPerspectiveCamera",[213,330,331],{"class":227}," :position",[213,333,234],{"class":219},[213,335,237],{"class":219},[213,337,338],{"class":240},"[5, 5, 5]",[213,340,237],{"class":219},[213,342,343],{"class":219}," />\n",[213,345,347],{"class":215,"line":346},8,[213,348,298],{"emptyLinePlaceholder":297},[213,350,352],{"class":215,"line":351},9,[213,353,355],{"class":354},"sHwdD","    \u003C!-- Your scene -->\n",[213,357,359],{"class":215,"line":358},10,[213,360,298],{"emptyLinePlaceholder":297},[213,362,364,366,369],{"class":215,"line":363},11,[213,365,325],{"class":219},[213,367,368],{"class":223},"Suspense",[213,370,246],{"class":219},[213,372,374,377,380],{"class":215,"line":373},12,[213,375,376],{"class":219},"      \u003C",[213,378,379],{"class":223},"EffectComposerPmndrs",[213,381,246],{"class":219},[213,383,385,388],{"class":215,"line":384},13,[213,386,387],{"class":219},"        \u003C",[213,389,390],{"class":223},"VignettePmndrs\n",[213,392,394,397,399,401,404],{"class":215,"line":393},14,[213,395,396],{"class":227},"          :darkness",[213,398,234],{"class":219},[213,400,237],{"class":219},[213,402,403],{"class":240},"0.9",[213,405,406],{"class":219},"\"\n",[213,408,410,413,415,417,420],{"class":215,"line":409},15,[213,411,412],{"class":227},"          :offset",[213,414,234],{"class":219},[213,416,237],{"class":219},[213,418,419],{"class":240},"0.2",[213,421,406],{"class":219},[213,423,425],{"class":215,"line":424},16,[213,426,427],{"class":219},"        />\n",[213,429,431,434,436],{"class":215,"line":430},17,[213,432,433],{"class":219},"      \u003C/",[213,435,379],{"class":223},[213,437,246],{"class":219},[213,439,441,444,446],{"class":215,"line":440},18,[213,442,443],{"class":219},"    \u003C/",[213,445,368],{"class":223},[213,447,246],{"class":219},[213,449,451,454,456],{"class":215,"line":450},19,[213,452,453],{"class":219},"  \u003C/",[213,455,317],{"class":223},[213,457,246],{"class":219},[213,459,461,463,465],{"class":215,"line":460},20,[213,462,287],{"class":219},[213,464,306],{"class":223},[213,466,246],{"class":219},[198,468,470],{"id":469},"props","Props",[472,473,474,490],"table",{},[475,476,477],"thead",{},[478,479,480,484,487],"tr",{},[481,482,483],"th",{},"Prop",[481,485,486],{},"Description",[481,488,489],{},"Default",[491,492,493,509,524,539],"tbody",{},[478,494,495,501,504],{},[496,497,498],"td",{},[210,499,500],{},"technique",[496,502,503],{},"Whether the noise should be multiplied with the input color.",[496,505,506],{},[210,507,508],{},"VignetteTechnique.DEFAULT",[478,510,511,516,519],{},[496,512,513],{},[210,514,515],{},"blendFunction",[496,517,518],{},"The blend function to use.",[496,520,521],{},[210,522,523],{},"BlendFunction.NORMAL",[478,525,526,531,534],{},[496,527,528],{},[210,529,530],{},"offset",[496,532,533],{},"The offset value.",[496,535,536],{},[210,537,538],{},"0.5",[478,540,541,546,549],{},[496,542,543],{},[210,544,545],{},"darkness",[496,547,548],{},"The darkness value.",[496,550,551],{},[210,552,538],{},[198,554,556],{"id":555},"further-reading","Further Reading",[194,558,559,560,567],{},"For more details, see the ",[561,562,566],"a",{"href":563,"rel":564},"https://pmndrs.github.io/postprocessing/public/docs/class/src/effects/VignetteEffect.js~VignetteEffect.html",[565],"nofollow","VignetteEffect documentation",".",[569,570,571],"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 .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":208,"searchDepth":216,"depth":249,"links":573},[574,575,576],{"id":200,"depth":249,"text":201},{"id":469,"depth":249,"text":470},{"id":555,"depth":249,"text":556},"Darken the edges of the scene to make the center pop.","md",null,{},{"title":141,"description":577},"NAGPW-4e5iEAkvcknttW-oH4Ur5osLVyhLaHc37QxGQ",[584,586],{"title":137,"path":138,"stem":139,"description":585,"children":-1},"Apply various tone mapping algorithms to improve the visual rendering of HDR content.",{"title":145,"path":146,"stem":147,"description":587,"children":-1},"Native Three.js post-processing effects.",1782052332480]