[{"data":1,"prerenderedAt":738},["ShallowReactive",2],{"navigation":3,"/api/pmndrs/grid":181,"/api/pmndrs/grid-surround":733},[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":81,"body":183,"description":727,"extension":728,"links":729,"meta":730,"navigation":326,"path":82,"seo":731,"stem":83,"__hash__":732},"docs/2.api/1.pmndrs/grid.md",{"type":184,"value":185,"toc":722},"minimark",[186,192,211,216,222,628,632,707,711,718],[187,188,189],"docs-demo",{},[190,191],"pmndrs-grid",{},[193,194,195,196,200,201,210],"p",{},"The ",[197,198,199],"code",{},"GridEffect"," effect is part of the ",[202,203,207],"a",{"href":204,"rel":205},"https://pmndrs.github.io/postprocessing/public/docs/class/src/effects/GridEffect.js~GridEffect.html",[206],"nofollow",[197,208,209],{},"postprocessing"," package.\nIt renders a grid that can be scaled or adjusted to achieve a variety of visual effects.",[212,213,215],"h2",{"id":214},"usage","Usage",[193,217,195,218,221],{},[197,219,220],{},"\u003CGridPmndrs>"," component is easy to use and provides customizable options to suit different visual styles.",[223,224,229],"pre",{"className":225,"code":226,"language":227,"meta":228,"style":228},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nimport { EffectComposerPmndrs, GridPmndrs } from '@tresjs/post-processing'\nimport { BlendFunction } from 'postprocessing'\n\nconst gl = {\n  toneMapping: NoToneMapping,\n}\n\nconst effectProps = {\n  blendFunction: BlendFunction.OVERLAY,\n  scale: 0.25,\n  lineWidth: 0.1,\n}\n\u003C/script>\n\n\u003Ctemplate>\n  \u003CTresCanvas v-bind=\"gl\">\n    \u003CTresPerspectiveCamera />\n\n    \u003C!-- Your scene -->\n\n    \u003CSuspense>\n      \u003CEffectComposerPmndrs>\n        \u003CGridPmndrs\n          :blend-function=\"effectProps.blendFunction\"\n          :scale=\"effectProps.scale\"\n          :line-width=\"effectProps.lineWidth\"\n        />\n      \u003C/EffectComposerPmndrs>\n    \u003C/Suspense>\n  \u003C/TresCanvas>\n\u003C/template>\n","vue","",[197,230,231,266,301,321,328,342,357,363,368,380,398,412,425,430,440,445,455,478,490,495,502,507,517,528,537,553,568,583,589,599,609,619],{"__ignoreMap":228},[232,233,236,240,244,248,251,254,257,261,263],"span",{"class":234,"line":235},"line",1,[232,237,239],{"class":238},"sMK4o","\u003C",[232,241,243],{"class":242},"swJcz","script",[232,245,247],{"class":246},"spNyl"," setup",[232,249,250],{"class":246}," lang",[232,252,253],{"class":238},"=",[232,255,256],{"class":238},"\"",[232,258,260],{"class":259},"sfazB","ts",[232,262,256],{"class":238},[232,264,265],{"class":238},">\n",[232,267,269,273,276,280,283,286,289,292,295,298],{"class":234,"line":268},2,[232,270,272],{"class":271},"s7zQu","import",[232,274,275],{"class":238}," {",[232,277,279],{"class":278},"sTEyZ"," EffectComposerPmndrs",[232,281,282],{"class":238},",",[232,284,285],{"class":278}," GridPmndrs",[232,287,288],{"class":238}," }",[232,290,291],{"class":271}," from",[232,293,294],{"class":238}," '",[232,296,297],{"class":259},"@tresjs/post-processing",[232,299,300],{"class":238},"'\n",[232,302,304,306,308,311,313,315,317,319],{"class":234,"line":303},3,[232,305,272],{"class":271},[232,307,275],{"class":238},[232,309,310],{"class":278}," BlendFunction",[232,312,288],{"class":238},[232,314,291],{"class":271},[232,316,294],{"class":238},[232,318,209],{"class":259},[232,320,300],{"class":238},[232,322,324],{"class":234,"line":323},4,[232,325,327],{"emptyLinePlaceholder":326},true,"\n",[232,329,331,334,337,339],{"class":234,"line":330},5,[232,332,333],{"class":246},"const",[232,335,336],{"class":278}," gl ",[232,338,253],{"class":238},[232,340,341],{"class":238}," {\n",[232,343,345,348,351,354],{"class":234,"line":344},6,[232,346,347],{"class":242},"  toneMapping",[232,349,350],{"class":238},":",[232,352,353],{"class":278}," NoToneMapping",[232,355,356],{"class":238},",\n",[232,358,360],{"class":234,"line":359},7,[232,361,362],{"class":238},"}\n",[232,364,366],{"class":234,"line":365},8,[232,367,327],{"emptyLinePlaceholder":326},[232,369,371,373,376,378],{"class":234,"line":370},9,[232,372,333],{"class":246},[232,374,375],{"class":278}," effectProps ",[232,377,253],{"class":238},[232,379,341],{"class":238},[232,381,383,386,388,390,393,396],{"class":234,"line":382},10,[232,384,385],{"class":242},"  blendFunction",[232,387,350],{"class":238},[232,389,310],{"class":278},[232,391,392],{"class":238},".",[232,394,395],{"class":278},"OVERLAY",[232,397,356],{"class":238},[232,399,401,404,406,410],{"class":234,"line":400},11,[232,402,403],{"class":242},"  scale",[232,405,350],{"class":238},[232,407,409],{"class":408},"sbssI"," 0.25",[232,411,356],{"class":238},[232,413,415,418,420,423],{"class":234,"line":414},12,[232,416,417],{"class":242},"  lineWidth",[232,419,350],{"class":238},[232,421,422],{"class":408}," 0.1",[232,424,356],{"class":238},[232,426,428],{"class":234,"line":427},13,[232,429,362],{"class":238},[232,431,433,436,438],{"class":234,"line":432},14,[232,434,435],{"class":238},"\u003C/",[232,437,243],{"class":242},[232,439,265],{"class":238},[232,441,443],{"class":234,"line":442},15,[232,444,327],{"emptyLinePlaceholder":326},[232,446,448,450,453],{"class":234,"line":447},16,[232,449,239],{"class":238},[232,451,452],{"class":242},"template",[232,454,265],{"class":238},[232,456,458,461,464,467,469,471,474,476],{"class":234,"line":457},17,[232,459,460],{"class":238},"  \u003C",[232,462,463],{"class":242},"TresCanvas",[232,465,466],{"class":246}," v-bind",[232,468,253],{"class":238},[232,470,256],{"class":238},[232,472,473],{"class":259},"gl",[232,475,256],{"class":238},[232,477,265],{"class":238},[232,479,481,484,487],{"class":234,"line":480},18,[232,482,483],{"class":238},"    \u003C",[232,485,486],{"class":242},"TresPerspectiveCamera",[232,488,489],{"class":238}," />\n",[232,491,493],{"class":234,"line":492},19,[232,494,327],{"emptyLinePlaceholder":326},[232,496,498],{"class":234,"line":497},20,[232,499,501],{"class":500},"sHwdD","    \u003C!-- Your scene -->\n",[232,503,505],{"class":234,"line":504},21,[232,506,327],{"emptyLinePlaceholder":326},[232,508,510,512,515],{"class":234,"line":509},22,[232,511,483],{"class":238},[232,513,514],{"class":242},"Suspense",[232,516,265],{"class":238},[232,518,520,523,526],{"class":234,"line":519},23,[232,521,522],{"class":238},"      \u003C",[232,524,525],{"class":242},"EffectComposerPmndrs",[232,527,265],{"class":238},[232,529,531,534],{"class":234,"line":530},24,[232,532,533],{"class":238},"        \u003C",[232,535,536],{"class":242},"GridPmndrs\n",[232,538,540,543,545,547,550],{"class":234,"line":539},25,[232,541,542],{"class":246},"          :blend-function",[232,544,253],{"class":238},[232,546,256],{"class":238},[232,548,549],{"class":259},"effectProps.blendFunction",[232,551,552],{"class":238},"\"\n",[232,554,556,559,561,563,566],{"class":234,"line":555},26,[232,557,558],{"class":246},"          :scale",[232,560,253],{"class":238},[232,562,256],{"class":238},[232,564,565],{"class":259},"effectProps.scale",[232,567,552],{"class":238},[232,569,571,574,576,578,581],{"class":234,"line":570},27,[232,572,573],{"class":246},"          :line-width",[232,575,253],{"class":238},[232,577,256],{"class":238},[232,579,580],{"class":259},"effectProps.lineWidth",[232,582,552],{"class":238},[232,584,586],{"class":234,"line":585},28,[232,587,588],{"class":238},"        />\n",[232,590,592,595,597],{"class":234,"line":591},29,[232,593,594],{"class":238},"      \u003C/",[232,596,525],{"class":242},[232,598,265],{"class":238},[232,600,602,605,607],{"class":234,"line":601},30,[232,603,604],{"class":238},"    \u003C/",[232,606,514],{"class":242},[232,608,265],{"class":238},[232,610,612,615,617],{"class":234,"line":611},31,[232,613,614],{"class":238},"  \u003C/",[232,616,463],{"class":242},[232,618,265],{"class":238},[232,620,622,624,626],{"class":234,"line":621},32,[232,623,435],{"class":238},[232,625,452],{"class":242},[232,627,265],{"class":238},[212,629,631],{"id":630},"props","Props",[633,634,635,651],"table",{},[636,637,638],"thead",{},[639,640,641,645,648],"tr",{},[642,643,644],"th",{},"Prop",[642,646,647],{},"Description",[642,649,650],{},"Default",[652,653,654,678,693],"tbody",{},[639,655,656,662,673],{},[657,658,659],"td",{},[197,660,661],{},"blendFunction",[657,663,664,665,672],{},"Defines how the effect blends with the original scene. See the ",[202,666,669],{"href":667,"rel":668},"https://pmndrs.github.io/postprocessing/public/docs/variable/index.html#static-variable-BlendFunction",[206],[197,670,671],{},"BlendFunction"," options.",[657,674,675],{},[197,676,677],{},"BlendFunction.OVERLAY",[639,679,680,685,688],{},[657,681,682],{},[197,683,684],{},"scale",[657,686,687],{},"The grid scale, which can be used to adjust the spacing effect.",[657,689,690],{},[197,691,692],{},"1.0",[639,694,695,700,703],{},[657,696,697],{},[197,698,699],{},"lineWidth",[657,701,702],{},"The width of the lines in the grid pattern.",[657,704,705],{},[197,706,692],{},[212,708,710],{"id":709},"further-reading","Further Reading",[193,712,713,714,392],{},"For more details, see the ",[202,715,717],{"href":204,"rel":716},[206],"GridEffect documentation",[719,720,721],"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 .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}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":228,"searchDepth":235,"depth":268,"links":723},[724,725,726],{"id":214,"depth":268,"text":215},{"id":630,"depth":268,"text":631},{"id":709,"depth":268,"text":710},"Render an adjustable grid overlay that can be scaled for various visual effects.","md",null,{},{"title":81,"description":727},"Tpv9jT-DegPqtmDno0VLtK72iuuJsI5vglio3EiSQ1E",[734,736],{"title":77,"path":78,"stem":79,"description":735,"children":-1},"Simulate volumetric light rays shining through objects in the scene.",{"title":85,"path":86,"stem":87,"description":737,"children":-1},"Adjust hue and saturation of the scene for color grading and artistic effects.",1782052330350]