[{"data":1,"prerenderedAt":600},["ShallowReactive",2],{"navigation":3,"/api/pmndrs/depth-of-field":181,"/api/pmndrs/depth-of-field-surround":595},[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":57,"body":183,"description":589,"extension":590,"links":591,"meta":592,"navigation":299,"path":58,"seo":593,"stem":59,"__hash__":594},"docs/2.api/1.pmndrs/depth-of-field.md",{"type":184,"value":185,"toc":584},"minimark",[186,192,196,199,204,446,450,568,572,580],[187,188,189],"docs-demo",{},[190,191],"pmndrs-depth-of-field",{},[193,194,195],"p",{},"Depth of field is an optical effect employed in photography and cinematography to replicate the natural behavior of real-world cameras. When capturing an image or scene with a real camera, it's crucial to understand that only objects at a particular distance from the camera lens will appear in crisp, clear focus. Objects closer or further away from this specific point gradually become progressively blurry or out of focus.",[193,197,198],{},"This photographic technique allows photographers and filmmakers to draw attention to specific subjects or areas within a composition while creatively blurring or softening the background or foreground. Depth of field is a powerful tool for storytelling and visual aesthetics, enabling artists to control the viewer's gaze and emphasize narrative elements by manipulating focus and blur to their advantage.",[200,201,203],"h2",{"id":202},"usage","Usage",[205,206,211],"pre",{"className":207,"code":208,"language":209,"meta":210,"style":210},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nimport { DepthOfFieldPmndrs, EffectComposerPmndrs } 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        \u003CDepthOfFieldPmndrs :focus-range=\"0.5\" />\n      \u003C/EffectComposerPmndrs>\n    \u003C/Suspense>\n  \u003C/TresCanvas>\n\u003C/template>\n","vue","",[212,213,214,249,284,294,301,311,322,346,351,358,363,373,384,407,417,427,437],"code",{"__ignoreMap":210},[215,216,219,223,227,231,234,237,240,244,246],"span",{"class":217,"line":218},"line",1,[215,220,222],{"class":221},"sMK4o","\u003C",[215,224,226],{"class":225},"swJcz","script",[215,228,230],{"class":229},"spNyl"," setup",[215,232,233],{"class":229}," lang",[215,235,236],{"class":221},"=",[215,238,239],{"class":221},"\"",[215,241,243],{"class":242},"sfazB","ts",[215,245,239],{"class":221},[215,247,248],{"class":221},">\n",[215,250,252,256,259,263,266,269,272,275,278,281],{"class":217,"line":251},2,[215,253,255],{"class":254},"s7zQu","import",[215,257,258],{"class":221}," {",[215,260,262],{"class":261},"sTEyZ"," DepthOfFieldPmndrs",[215,264,265],{"class":221},",",[215,267,268],{"class":261}," EffectComposerPmndrs",[215,270,271],{"class":221}," }",[215,273,274],{"class":254}," from",[215,276,277],{"class":221}," '",[215,279,280],{"class":242},"@tresjs/post-processing",[215,282,283],{"class":221},"'\n",[215,285,287,290,292],{"class":217,"line":286},3,[215,288,289],{"class":221},"\u003C/",[215,291,226],{"class":225},[215,293,248],{"class":221},[215,295,297],{"class":217,"line":296},4,[215,298,300],{"emptyLinePlaceholder":299},true,"\n",[215,302,304,306,309],{"class":217,"line":303},5,[215,305,222],{"class":221},[215,307,308],{"class":225},"template",[215,310,248],{"class":221},[215,312,314,317,320],{"class":217,"line":313},6,[215,315,316],{"class":221},"  \u003C",[215,318,319],{"class":225},"TresCanvas",[215,321,248],{"class":221},[215,323,325,328,331,334,336,338,341,343],{"class":217,"line":324},7,[215,326,327],{"class":221},"    \u003C",[215,329,330],{"class":225},"TresPerspectiveCamera",[215,332,333],{"class":229}," :position",[215,335,236],{"class":221},[215,337,239],{"class":221},[215,339,340],{"class":242},"[5, 5, 5]",[215,342,239],{"class":221},[215,344,345],{"class":221}," />\n",[215,347,349],{"class":217,"line":348},8,[215,350,300],{"emptyLinePlaceholder":299},[215,352,354],{"class":217,"line":353},9,[215,355,357],{"class":356},"sHwdD","    \u003C!-- Your scene -->\n",[215,359,361],{"class":217,"line":360},10,[215,362,300],{"emptyLinePlaceholder":299},[215,364,366,368,371],{"class":217,"line":365},11,[215,367,327],{"class":221},[215,369,370],{"class":225},"Suspense",[215,372,248],{"class":221},[215,374,376,379,382],{"class":217,"line":375},12,[215,377,378],{"class":221},"      \u003C",[215,380,381],{"class":225},"EffectComposerPmndrs",[215,383,248],{"class":221},[215,385,387,390,393,396,398,400,403,405],{"class":217,"line":386},13,[215,388,389],{"class":221},"        \u003C",[215,391,392],{"class":225},"DepthOfFieldPmndrs",[215,394,395],{"class":229}," :focus-range",[215,397,236],{"class":221},[215,399,239],{"class":221},[215,401,402],{"class":242},"0.5",[215,404,239],{"class":221},[215,406,345],{"class":221},[215,408,410,413,415],{"class":217,"line":409},14,[215,411,412],{"class":221},"      \u003C/",[215,414,381],{"class":225},[215,416,248],{"class":221},[215,418,420,423,425],{"class":217,"line":419},15,[215,421,422],{"class":221},"    \u003C/",[215,424,370],{"class":225},[215,426,248],{"class":221},[215,428,430,433,435],{"class":217,"line":429},16,[215,431,432],{"class":221},"  \u003C/",[215,434,319],{"class":225},[215,436,248],{"class":221},[215,438,440,442,444],{"class":217,"line":439},17,[215,441,289],{"class":221},[215,443,308],{"class":225},[215,445,248],{"class":221},[200,447,449],{"id":448},"props","Props",[451,452,453,469],"table",{},[454,455,456],"thead",{},[457,458,459,463,466],"tr",{},[460,461,462],"th",{},"Prop",[460,464,465],{},"Description",[460,467,468],{},"Default",[470,471,472,492,507,520,536,553],"tbody",{},[457,473,474,480,483],{},[475,476,477],"td",{},[212,478,479],{},"blendFunction",[475,481,482],{},"The blend function of this effect.",[475,484,485],{},[486,487,491],"a",{"href":488,"rel":489},"https://github.com/pmndrs/postprocessing/blob/c3ce388be247916437a314f17748a75329d65df1/src/enums/BlendFunction.js#L40",[490],"nofollow","BlendFunction.SCREEN",[457,493,494,499,502],{},[475,495,496],{},[212,497,498],{},"worldFocusDistance",[475,500,501],{},"The focus distance in world units.",[475,503,504],{},[212,505,506],{},"0.3",[457,508,509,514,517],{},[475,510,511],{},[212,512,513],{},"worldFocusRange",[475,515,516],{},"The focus range in world units.",[475,518,519],{},"depends on camera",[457,521,522,527,534],{},[475,523,524],{},[212,525,526],{},"focusDistance",[475,528,529,530,533],{},"The normalized focus distance. Range is ",[215,531,532],{},"0.0, 1.0",".",[475,535,519],{},[457,537,538,543,548],{},[475,539,540],{},[212,541,542],{},"focusRange",[475,544,545,546,533],{},"The focus range. Range is ",[215,547,532],{},[475,549,550],{},[212,551,552],{},"0.1",[457,554,555,560,563],{},[475,556,557],{},[212,558,559],{},"bokehScale",[475,561,562],{},"The scale of the bokeh blur.",[475,564,565],{},[212,566,567],{},"1.0",[200,569,571],{"id":570},"further-reading","Further Reading",[193,573,574,575,533],{},"For more details, see the ",[486,576,579],{"href":577,"rel":578},"https://pmndrs.github.io/postprocessing/public/docs/class/src/effects/DepthOfFieldEffect.js~DepthOfFieldEffect.html",[490],"DepthOfFieldEffect documentation",[581,582,583],"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":210,"searchDepth":218,"depth":251,"links":585},[586,587,588],{"id":202,"depth":251,"text":203},{"id":448,"depth":251,"text":449},{"id":570,"depth":251,"text":571},"Replicate camera lens blur to draw attention to specific subjects in your scene.","md",null,{},{"title":57,"description":589},"jBxEXjumjeTw19VFAokWlP1cmona6t6UqYfqUMlai3Y",[596,598],{"title":53,"path":54,"stem":55,"description":597,"children":-1},"Reduce the color bit depth to create posterization and dithering effects.",{"title":61,"path":62,"stem":63,"description":599,"children":-1},"Create a dot screen effect for artistic and stylized rendering.",1785417167555]