[{"data":1,"prerenderedAt":204,"buildId":205},["ShallowReactive",2],{"doc-\u002Fdocs\u002Fprimitives\u002Finputs\u002Fchild":3,"github-stars":112,"guide-nav":114},{"id":4,"title":5,"body":6,"categoryId":99,"categorySlug":99,"categoryTitle":100,"curated":101,"description":15,"editUrl":102,"extension":103,"group":99,"groupTitle":100,"kind":104,"meta":105,"navigation":106,"path":107,"seo":108,"sourceUrl":109,"stem":110,"wordCount":102,"__hash__":111},"primitives\u002Fdocs\u002Fprimitives\u002F36.inputs\u002F1.child.md","child",{"type":7,"value":8,"toc":95},"minimark",[9,12,16,38,48,54,59,91],[10,11,5],"h1",{"id":5},[13,14,15],"p",{},"The layer inside this one, as a source for an input.",[17,18,23],"pre",{"className":19,"code":20,"language":21,"meta":22,"style":22},"language-ts shiki shiki-themes github-dark","child: ChildSource\n","ts","",[24,25,26],"code",{"__ignoreMap":22},[27,28,31,34],"span",{"class":29,"line":30},"line",1,[27,32,5],{"class":33},"svObZ",[27,35,37],{"class":36},"s95oV",": ChildSource\n",[13,39,40,41,43,44,47],{},"Import ",[24,42,5],{}," from ",[24,45,46],{},"shaders\u002Fstd",".",[13,49,50,53],{},[24,51,52],{},"blur(child, {radius: 12})"," blurs it.",[55,56,58],"h2",{"id":57},"see-also","See also",[60,61,62,73,82],"ul",{},[63,64,65,72],"li",{},[66,67,69],"a",{"href":68},"\u002Fdocs\u002Fprimitives\u002Finputs-blur\u002Fblur",[24,70,71],{},"blur"," — A blurred copy of a source, read in WGSL by the name you list it under.",[63,74,75,81],{},[66,76,78],{"href":77},"\u002Fdocs\u002Fprimitives\u002Finputs-bloom\u002Fbloom",[24,79,80],{},"bloom"," — The glow around a source's bright parts, read by name.",[63,83,84,90],{},[66,85,87],{"href":86},"\u002Fdocs\u002Fprimitives\u002Finputs-passes\u002Fdownsample",[24,88,89],{},"downsample"," — A smaller copy of a source, box-filtered so it does not alias.",[92,93,94],"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);}",{"title":22,"searchDepth":96,"depth":96,"links":97},2,[98],{"id":57,"depth":96,"text":58},"inputs","Inputs",false,null,"md","constant",{},true,"\u002Fdocs\u002Fprimitives\u002Finputs\u002Fchild",{"title":5,"description":15},"https:\u002F\u002Fgithub.com\u002Fshader-effects-inc\u002Fshaders\u002Fblob\u002Fmain\u002Fpackages\u002Fcore\u002Fsrc\u002Fstd\u002Finputs\u002Ftypes.ts#L31","docs\u002Fprimitives\u002F36.inputs\u002F1.child","MFffs33NTyHq1Q3L2RNEnNf5IkRMGKIu-eFd2UnHa5g",{"stars":113},6080,[115,119,123,127,131,135,139,143,147,151,155,159,163,167,171,175,179,184,188,192,196,200],{"path":116,"title":117,"description":118,"category":24},"\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":120,"title":121,"description":122,"category":24},"\u002Fdocs\u002Fguide\u002Fquickstart","Quickstart","Install Shaders, render your first effect, and drive a prop from state.",{"path":124,"title":125,"description":126,"category":24},"\u002Fdocs\u002Fguide\u002Fcomposing-effects","Composing effects","Stack components as layers and nest them to control which layers an effect touches.",{"path":128,"title":129,"description":130,"category":24},"\u002Fdocs\u002Fguide\u002Fblending-masking","Blending and masking","Control how a layer mixes with the layers below it, and reveal one layer through another.",{"path":132,"title":133,"description":134,"category":24},"\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":136,"title":137,"description":138,"category":24},"\u002Fdocs\u002Fguide\u002Fanimation","Animating a shader","Tween a shader's props with Motion, GSAP or anything else that animates a number.",{"path":140,"title":141,"description":142,"category":24},"\u002Fdocs\u002Fguide\u002Fdynamic-props","Dynamic props","Drive any numeric or position prop from time, the cursor, or another layer, without writing animation code.",{"path":144,"title":145,"description":146,"category":24},"\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":148,"title":149,"description":150,"category":24},"\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":152,"title":153,"description":154,"category":24},"\u002Fdocs\u002Fguide\u002Ftransforms","Transforms","Position, size, and rotate any layer inside the canvas with a bounding box, in any CSS unit.",{"path":156,"title":157,"description":158,"category":24},"\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":160,"title":161,"description":162,"category":24},"\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":164,"title":165,"description":166,"category":24},"\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":168,"title":169,"description":170,"category":24},"\u002Fdocs\u002Fguide\u002Fperformance","Performance","Learn what makes an effect expensive on the GPU and how to keep it inside the frame budget.",{"path":172,"title":173,"description":174,"category":24},"\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":176,"title":177,"description":178,"category":24},"\u002Fdocs\u002Fguide\u002Ftelemetry","Telemetry","The `\u003CShader>` component occasionally sends an anonymous performance report to help us improve the engine over time.",{"path":180,"title":181,"description":182,"category":183},"\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":185,"title":186,"description":187,"category":183},"\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":189,"title":190,"description":191,"category":183},"\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":193,"title":194,"description":195,"category":24},"\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":197,"title":198,"description":199,"category":24},"\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":201,"title":202,"description":203,"category":24},"\u002Fdocs\u002Fguide\u002Fssr","Server rendering","Render Shaders in Next.js, Nuxt, SvelteKit, SolidStart and other SSR apps by keeping each shader on the client.",1796051185930,"06e02370-81a6-4d74-9931-661d71414be1"]