[{"data":1,"prerenderedAt":313,"buildId":314},["ShallowReactive",2],{"doc-\u002Fdocs\u002Fprimitives\u002Finputs-passes\u002Fdirectionalblur":3,"github-stars":221,"guide-nav":223},{"id":4,"title":5,"body":6,"categoryId":205,"categorySlug":206,"categoryTitle":207,"curated":208,"description":209,"editUrl":210,"extension":211,"group":144,"groupTitle":212,"kind":213,"meta":214,"navigation":215,"path":216,"seo":217,"sourceUrl":218,"stem":219,"wordCount":210,"__hash__":220},"primitives\u002Fdocs\u002Fprimitives\u002F39.inputs-passes\u002F1.directionalblur.md","directionalBlur",{"type":7,"value":8,"toc":200},"minimark",[9,13,26,65,75,80,131,135,178,182,196],[10,11,5],"h1",{"id":12},"directionalblur",[14,15,16,17,21,22,25],"p",{},"A source smeared along a direction: ",[18,19,20],"code",{},"angle"," in degrees (0 points right, 90 down), ",[18,23,24],{},"length"," in canvas pixels. 32 weighted taps along the streak, at half resolution.",[27,28,33],"pre",{"className":29,"code":30,"language":31,"meta":32,"style":32},"language-ts shiki shiki-themes github-dark","directionalBlur(\n  source: InputSource,\n  opts: {angle: ScalarArg; length: ScalarArg},\n): DirectionalBlurInput\n","ts","",[18,34,35,47,53,59],{"__ignoreMap":32},[36,37,40,43],"span",{"class":38,"line":39},"line",1,[36,41,5],{"class":42},"svObZ",[36,44,46],{"class":45},"s95oV","(\n",[36,48,50],{"class":38,"line":49},2,[36,51,52],{"class":45},"  source: InputSource,\n",[36,54,56],{"class":38,"line":55},3,[36,57,58],{"class":45},"  opts: {angle: ScalarArg; length: ScalarArg},\n",[36,60,62],{"class":38,"line":61},4,[36,63,64],{"class":45},"): DirectionalBlurInput\n",[14,66,67,68,70,71,74],{},"Import ",[18,69,5],{}," from ",[18,72,73],{},"shaders\u002Fstd",".",[76,77,79],"h2",{"id":78},"parameters","Parameters",[81,82,83,99],"table",{},[84,85,86],"thead",{},[87,88,89,93,96],"tr",{},[90,91,92],"th",{},"Name",[90,94,95],{},"Type",[90,97,98],{},"Notes",[100,101,102,117],"tbody",{},[87,103,104,110,115],{},[105,106,107],"td",{},[18,108,109],{},"source",[105,111,112],{},[18,113,114],{},"InputSource",[105,116],{},[87,118,119,124,129],{},[105,120,121],{},[18,122,123],{},"opts",[105,125,126],{},[18,127,128],{},"{angle: ScalarArg; length: ScalarArg}",[105,130],{},[76,132,134],{"id":133},"example","Example",[27,136,138],{"className":29,"code":137,"language":31,"meta":32,"style":32},"inputs: {streak: directionalBlur(child, {angle: p('angle'), length: 60})},\n",[18,139,140],{"__ignoreMap":32},[36,141,142,145,148,151,154,156,159,161,164,168,171,175],{"class":38,"line":39},[36,143,144],{"class":42},"inputs",[36,146,147],{"class":45},": {",[36,149,150],{"class":42},"streak",[36,152,153],{"class":45},": ",[36,155,5],{"class":42},[36,157,158],{"class":45},"(child, {angle: ",[36,160,14],{"class":42},[36,162,163],{"class":45},"(",[36,165,167],{"class":166},"sU2Wk","'angle'",[36,169,170],{"class":45},"), length: ",[36,172,174],{"class":173},"sDLfK","60",[36,176,177],{"class":45},"})},\n",[76,179,181],{"id":180},"see-also","See also",[183,184,185],"ul",{},[186,187,188,195],"li",{},[189,190,192],"a",{"href":191},"\u002Fdocs\u002Fprimitives\u002Finputs-blur\u002Fblur",[18,193,194],{},"blur"," — A blurred copy of a source, read in WGSL by the name you list it under.",[197,198,199],"style",{},"html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}html pre.shiki code .s95oV, html code.shiki .s95oV{--shiki-default:#E1E4E8}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 pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}html pre.shiki code .sDLfK, html code.shiki .sDLfK{--shiki-default:#79B8FF}",{"title":32,"searchDepth":49,"depth":49,"links":201},[202,203,204],{"id":78,"depth":49,"text":79},{"id":133,"depth":49,"text":134},{"id":180,"depth":49,"text":181},"inputs.passes","inputs-passes","Passes",false,"A source smeared along a direction: `angle` in degrees (0 points right, 90 down), `length` in canvas pixels. 32 weighted taps along the streak, at half resolution.",null,"md","Inputs","function",{},true,"\u002Fdocs\u002Fprimitives\u002Finputs-passes\u002Fdirectionalblur",{"title":5,"description":209},"https:\u002F\u002Fgithub.com\u002Fshader-effects-inc\u002Fshaders\u002Fblob\u002Fmain\u002Fpackages\u002Fcore\u002Fsrc\u002Fstd\u002Finputs\u002Fpasses.ts#L159","docs\u002Fprimitives\u002F39.inputs-passes\u002F1.directionalblur","peR9wjBmKEMglSTQ00cVvU2IF8jAZjDSFnay1ZYGZWo",{"stars":222},6080,[224,228,232,236,240,244,248,252,256,260,264,268,272,276,280,284,288,293,297,301,305,309],{"path":225,"title":226,"description":227,"category":18},"\u002Fdocs\u002Fguide","Getting started","Shaders is a desktop app where your AI agent designs interactive effects on an infinite canvas, and you shape them by hand.",{"path":229,"title":230,"description":231,"category":18},"\u002Fdocs\u002Fguide\u002Fquickstart","Quickstart","Install Shaders, render your first effect, and drive a prop from state.",{"path":233,"title":234,"description":235,"category":18},"\u002Fdocs\u002Fguide\u002Fcomposing-effects","Composing effects","Stack components as layers and nest them to control which layers an effect touches.",{"path":237,"title":238,"description":239,"category":18},"\u002Fdocs\u002Fguide\u002Fblending-masking","Blending and masking","Control how a layer mixes with the layers below it, and reveal one layer through another.",{"path":241,"title":242,"description":243,"category":18},"\u002Fdocs\u002Fguide\u002Fprops-reactivity","Props and reactivity","Bind props to your framework's state so effects update when it changes, and animate props with an animation library.",{"path":245,"title":246,"description":247,"category":18},"\u002Fdocs\u002Fguide\u002Fanimation","Animating a shader","Tween a shader's props with Motion, GSAP or anything else that animates a number.",{"path":249,"title":250,"description":251,"category":18},"\u002Fdocs\u002Fguide\u002Fdynamic-props","Dynamic props","Drive any numeric or position prop from time, the cursor, or another layer, without writing animation code.",{"path":253,"title":254,"description":255,"category":18},"\u002Fdocs\u002Fguide\u002Flayout-positioning","Layout and positioning","Size and place a shader in your page with CSS, as a background, a fill, or an inline block.",{"path":257,"title":258,"description":259,"category":18},"\u002Fdocs\u002Fguide\u002Fsizing-and-units","Sizing and units","Size and place layers in CSS units (px, %, vw, rem, and canvas units) that stay correct as the canvas and window resize.",{"path":261,"title":262,"description":263,"category":18},"\u002Fdocs\u002Fguide\u002Ftransforms","Transforms","Position, size, and rotate any layer inside the canvas with a bounding box, in any CSS unit.",{"path":265,"title":266,"description":267,"category":18},"\u002Fdocs\u002Fguide\u002Fshape-effects","Shape effects","Pick the 2D, 3D or custom SVG shape that Glass, Neon, Emboss and other shape effects draw inside.",{"path":269,"title":270,"description":271,"category":18},"\u002Fdocs\u002Fguide\u002Fcolor-space","Color space","Match colors to your design tool with the output color space, and keep bright layers from clipping with tone mapping.",{"path":273,"title":274,"description":275,"category":18},"\u002Fdocs\u002Fguide\u002Fhooks-events","Hooks and events","Run code when an effect is ready to show, and show a fallback when the GPU can't run it.",{"path":277,"title":278,"description":279,"category":18},"\u002Fdocs\u002Fguide\u002Fperformance","Performance","Learn what makes an effect expensive on the GPU and how to keep it inside the frame budget.",{"path":281,"title":282,"description":283,"category":18},"\u002Fdocs\u002Fguide\u002Fcustom-shaders","Custom components","Write your own component in TypeScript, use it like any component in the library, and write WGSL by hand when you need to.",{"path":285,"title":286,"description":287,"category":18},"\u002Fdocs\u002Fguide\u002Ftelemetry","Telemetry","The `\u003CShader>` component occasionally sends an anonymous performance report to help us improve the engine over time.",{"path":289,"title":290,"description":291,"category":292},"\u002Fdocs\u002Fguide\u002Fmcp","Working with your agent","The Shaders MCP connects your AI agent to the desktop app, so it can design shaders on your canvas and install them in your project.","workflows",{"path":294,"title":295,"description":296,"category":292},"\u002Fdocs\u002Fguide\u002Fcli","Working with the CLI","The Shaders CLI installs shaders from your projects and the Pro library into your codebase as component files, and keeps them in sync as you keep designing.",{"path":298,"title":299,"description":300,"category":292},"\u002Fdocs\u002Fguide\u002Fframeworks","Supported frameworks","Shaders runs in any web project that renders in a browser with WebGPU, with components for React, Vue, Svelte and Solid and a JavaScript API for everything else.",{"path":302,"title":303,"description":304,"category":18},"\u002Fdocs\u002Fguide\u002Fagent-skill","Agent skill for the engine","Teach your coding agent to write Shaders code with the open-source engine, for when it's working in your codebase instead of on the canvas.",{"path":306,"title":307,"description":308,"category":18},"\u002Fdocs\u002Fguide\u002Fvideo-rendering","Rendering to video","Render a shader effect to video frame by frame, from Remotion, Hyperframes or your own headless Chrome script.",{"path":310,"title":311,"description":312,"category":18},"\u002Fdocs\u002Fguide\u002Fssr","Server rendering","Render Shaders in Next.js, Nuxt, SvelteKit, SolidStart and other SSR apps by keeping each shader on the client.",1796051186015,"06e02370-81a6-4d74-9931-661d71414be1"]