[{"data":1,"prerenderedAt":720},["ShallowReactive",2],{"navigation":3,"/api/pmndrs/scanline":181,"/api/pmndrs/scanline-surround":715},[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":113,"body":183,"description":709,"extension":710,"links":711,"meta":712,"navigation":331,"path":114,"seo":713,"stem":115,"__hash__":714},"docs/2.api/1.pmndrs/scanline.md",{"type":184,"value":185,"toc":704},"minimark",[186,192,200,205,595,599,685,689,700],[187,188,189],"docs-demo",{},[190,191],"pmndrs-scanline",{},[193,194,195,196,199],"p",{},"The ",[197,198,113],"code",{}," effect simulates scanlines reminiscent of old CRT displays, creating a nostalgic or stylized visual effect for your scene. This effect can enhance the retro aesthetic of your project or add a unique visual touch.",[201,202,204],"h2",{"id":203},"usage","Usage",[206,207,212],"pre",{"className":208,"code":209,"language":210,"meta":211,"style":211},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nimport { TresCanvas } from '@tresjs/core'\nimport { EffectComposerPmndrs, ScanlinePmndrs } from '@tresjs/post-processing'\nimport { NoToneMapping } from 'three'\n\nconst gl = {\n  clearColor: '#0ff000',\n  toneMapping: NoToneMapping,\n}\n\u003C/script>\n\n\u003Ctemplate>\n  \u003CTresCanvas v-bind=\"gl\">\n    \u003CTresPerspectiveCamera :position=\"[5, 5, 5]\" />\n\n    \u003C!-- Your scene -->\n\n    \u003CSuspense>\n      \u003CEffectComposerPmndrs>\n        \u003CScanlinePmndrs\n          :density=\"1.25\"\n          :opacity=\"0.65\"\n          :scroll-speed=\"0.05\"\n        />\n      \u003C/EffectComposerPmndrs>\n    \u003C/Suspense>\n  \u003C/TresCanvas>\n\u003C/template>\n","vue","",[197,213,214,249,278,305,326,333,347,367,379,385,395,400,410,433,457,462,469,474,484,495,504,520,535,550,556,566,576,586],{"__ignoreMap":211},[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],{"class":217,"line":251},2,[215,253,255],{"class":254},"s7zQu","import",[215,257,258],{"class":221}," {",[215,260,262],{"class":261},"sTEyZ"," TresCanvas",[215,264,265],{"class":221}," }",[215,267,268],{"class":254}," from",[215,270,271],{"class":221}," '",[215,273,274],{"class":242},"@tresjs/core",[215,276,277],{"class":221},"'\n",[215,279,281,283,285,288,291,294,296,298,300,303],{"class":217,"line":280},3,[215,282,255],{"class":254},[215,284,258],{"class":221},[215,286,287],{"class":261}," EffectComposerPmndrs",[215,289,290],{"class":221},",",[215,292,293],{"class":261}," ScanlinePmndrs",[215,295,265],{"class":221},[215,297,268],{"class":254},[215,299,271],{"class":221},[215,301,302],{"class":242},"@tresjs/post-processing",[215,304,277],{"class":221},[215,306,308,310,312,315,317,319,321,324],{"class":217,"line":307},4,[215,309,255],{"class":254},[215,311,258],{"class":221},[215,313,314],{"class":261}," NoToneMapping",[215,316,265],{"class":221},[215,318,268],{"class":254},[215,320,271],{"class":221},[215,322,323],{"class":242},"three",[215,325,277],{"class":221},[215,327,329],{"class":217,"line":328},5,[215,330,332],{"emptyLinePlaceholder":331},true,"\n",[215,334,336,339,342,344],{"class":217,"line":335},6,[215,337,338],{"class":229},"const",[215,340,341],{"class":261}," gl ",[215,343,236],{"class":221},[215,345,346],{"class":221}," {\n",[215,348,350,353,356,358,361,364],{"class":217,"line":349},7,[215,351,352],{"class":225},"  clearColor",[215,354,355],{"class":221},":",[215,357,271],{"class":221},[215,359,360],{"class":242},"#0ff000",[215,362,363],{"class":221},"'",[215,365,366],{"class":221},",\n",[215,368,370,373,375,377],{"class":217,"line":369},8,[215,371,372],{"class":225},"  toneMapping",[215,374,355],{"class":221},[215,376,314],{"class":261},[215,378,366],{"class":221},[215,380,382],{"class":217,"line":381},9,[215,383,384],{"class":221},"}\n",[215,386,388,391,393],{"class":217,"line":387},10,[215,389,390],{"class":221},"\u003C/",[215,392,226],{"class":225},[215,394,248],{"class":221},[215,396,398],{"class":217,"line":397},11,[215,399,332],{"emptyLinePlaceholder":331},[215,401,403,405,408],{"class":217,"line":402},12,[215,404,222],{"class":221},[215,406,407],{"class":225},"template",[215,409,248],{"class":221},[215,411,413,416,419,422,424,426,429,431],{"class":217,"line":412},13,[215,414,415],{"class":221},"  \u003C",[215,417,418],{"class":225},"TresCanvas",[215,420,421],{"class":229}," v-bind",[215,423,236],{"class":221},[215,425,239],{"class":221},[215,427,428],{"class":242},"gl",[215,430,239],{"class":221},[215,432,248],{"class":221},[215,434,436,439,442,445,447,449,452,454],{"class":217,"line":435},14,[215,437,438],{"class":221},"    \u003C",[215,440,441],{"class":225},"TresPerspectiveCamera",[215,443,444],{"class":229}," :position",[215,446,236],{"class":221},[215,448,239],{"class":221},[215,450,451],{"class":242},"[5, 5, 5]",[215,453,239],{"class":221},[215,455,456],{"class":221}," />\n",[215,458,460],{"class":217,"line":459},15,[215,461,332],{"emptyLinePlaceholder":331},[215,463,465],{"class":217,"line":464},16,[215,466,468],{"class":467},"sHwdD","    \u003C!-- Your scene -->\n",[215,470,472],{"class":217,"line":471},17,[215,473,332],{"emptyLinePlaceholder":331},[215,475,477,479,482],{"class":217,"line":476},18,[215,478,438],{"class":221},[215,480,481],{"class":225},"Suspense",[215,483,248],{"class":221},[215,485,487,490,493],{"class":217,"line":486},19,[215,488,489],{"class":221},"      \u003C",[215,491,492],{"class":225},"EffectComposerPmndrs",[215,494,248],{"class":221},[215,496,498,501],{"class":217,"line":497},20,[215,499,500],{"class":221},"        \u003C",[215,502,503],{"class":225},"ScanlinePmndrs\n",[215,505,507,510,512,514,517],{"class":217,"line":506},21,[215,508,509],{"class":229},"          :density",[215,511,236],{"class":221},[215,513,239],{"class":221},[215,515,516],{"class":242},"1.25",[215,518,519],{"class":221},"\"\n",[215,521,523,526,528,530,533],{"class":217,"line":522},22,[215,524,525],{"class":229},"          :opacity",[215,527,236],{"class":221},[215,529,239],{"class":221},[215,531,532],{"class":242},"0.65",[215,534,519],{"class":221},[215,536,538,541,543,545,548],{"class":217,"line":537},23,[215,539,540],{"class":229},"          :scroll-speed",[215,542,236],{"class":221},[215,544,239],{"class":221},[215,546,547],{"class":242},"0.05",[215,549,519],{"class":221},[215,551,553],{"class":217,"line":552},24,[215,554,555],{"class":221},"        />\n",[215,557,559,562,564],{"class":217,"line":558},25,[215,560,561],{"class":221},"      \u003C/",[215,563,492],{"class":225},[215,565,248],{"class":221},[215,567,569,572,574],{"class":217,"line":568},26,[215,570,571],{"class":221},"    \u003C/",[215,573,481],{"class":225},[215,575,248],{"class":221},[215,577,579,582,584],{"class":217,"line":578},27,[215,580,581],{"class":221},"  \u003C/",[215,583,418],{"class":225},[215,585,248],{"class":221},[215,587,589,591,593],{"class":217,"line":588},28,[215,590,390],{"class":221},[215,592,407],{"class":225},[215,594,248],{"class":221},[201,596,598],{"id":597},"props","Props",[600,601,602,618],"table",{},[603,604,605],"thead",{},[606,607,608,612,615],"tr",{},[609,610,611],"th",{},"Prop",[609,613,614],{},"Description",[609,616,617],{},"Default",[619,620,621,637,651,666],"tbody",{},[606,622,623,629,632],{},[624,625,626],"td",{},[197,627,628],{},"blendFunction",[624,630,631],{},"Defines how the effect blends with the original scene.",[624,633,634],{},[197,635,636],{},"BlendFunction.OVERLAY",[606,638,639,644,647],{},[624,640,641],{},[197,642,643],{},"density",[624,645,646],{},"The density of the scanlines. Higher values increase the frequency of lines.",[624,648,649],{},[197,650,516],{},[606,652,653,658,661],{},[624,654,655],{},[197,656,657],{},"opacity",[624,659,660],{},"The opacity of the scanlines.",[624,662,663],{},[197,664,665],{},"1.0",[606,667,668,673,680],{},[624,669,670],{},[197,671,672],{},"scrollSpeed",[624,674,675,676,679],{},"The speed at which the scanlines scroll vertically. Set to ",[197,677,678],{},"0"," for static scanlines.",[624,681,682],{},[197,683,684],{},"0.0",[201,686,688],{"id":687},"further-reading","Further Reading",[193,690,691,692,699],{},"For more details, see the ",[693,694,698],"a",{"href":695,"rel":696},"https://pmndrs.github.io/postprocessing/public/docs/class/src/effects/ScanlineEffect.js~ScanlineEffect.html",[697],"nofollow","ScanlineEffect documentation",".",[701,702,703],"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":211,"searchDepth":218,"depth":251,"links":705},[706,707,708],{"id":203,"depth":251,"text":204},{"id":597,"depth":251,"text":598},{"id":687,"depth":251,"text":688},"Simulate scanlines reminiscent of old CRT displays.","md",null,{},{"title":113,"description":709},"dA0Ixkm_rd0BpPv7DaDYyimqoj_n-3U_k8I1WJqmROo",[716,718],{"title":109,"path":110,"stem":111,"description":717,"children":-1},"Pixelate the scene for a retro look.",{"title":117,"path":118,"stem":119,"description":719,"children":-1},"Apply a sepia tone to the scene, giving it a warm, antique appearance.",1785417169090]