[{"data":1,"prerenderedAt":1494},["ShallowReactive",2],{"navigation_docs":3,"-reference-pipeline-text":271,"-reference-pipeline-text-surround":1489},[4,35,70,120,154,183,217,246,261],{"title":5,"path":6,"stem":7,"children":8,"page":34},"Getting started","\u002Fgetting-started","1.getting-started",[9,14,19,24,29],{"title":10,"path":11,"stem":12,"icon":13},"What is ISF Studio","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-house",{"title":15,"path":16,"stem":17,"icon":18},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation","i-lucide-download",{"title":20,"path":21,"stem":22,"icon":23},"Your first shader","\u002Fgetting-started\u002Ffirst-shader","1.getting-started\u002F3.first-shader","i-lucide-code-2",{"title":25,"path":26,"stem":27,"icon":28},"Your first pipeline","\u002Fgetting-started\u002Ffirst-pipeline","1.getting-started\u002F4.first-pipeline","i-lucide-workflow",{"title":30,"path":31,"stem":32,"icon":33},"Interface tour","\u002Fgetting-started\u002Finterface-tour","1.getting-started\u002F5.interface-tour","i-lucide-layout-panel-left",false,{"title":36,"path":37,"stem":38,"children":39,"page":34},"Library","\u002Flibrary","2.library",[40,45,50,55,60,65],{"title":41,"path":42,"stem":43,"icon":44},"The explorer","\u002Flibrary\u002Fexplorer","2.library\u002F1.explorer","i-lucide-folder-tree",{"title":46,"path":47,"stem":48,"icon":49},"Organizing files","\u002Flibrary\u002Forganizing-files","2.library\u002F2.organizing-files","i-lucide-files",{"title":51,"path":52,"stem":53,"icon":54},"Images and gallery","\u002Flibrary\u002Fimages-and-gallery","2.library\u002F3.images-and-gallery","i-lucide-image",{"title":56,"path":57,"stem":58,"icon":59},"Sharing","\u002Flibrary\u002Fsharing","2.library\u002F4.sharing","i-lucide-package",{"title":61,"path":62,"stem":63,"icon":64},"Installing in software","\u002Flibrary\u002Finstalling-in-software","2.library\u002F5.installing-in-software","i-lucide-folder-input",{"title":66,"path":67,"stem":68,"icon":69},"OpenFX plug-ins","\u002Flibrary\u002Fopenfx-plugins","2.library\u002F6.openfx-plugins","i-lucide-plug",{"title":71,"path":72,"stem":73,"children":74,"page":34},"Shaders","\u002Fshaders","3.shaders",[75,80,85,90,95,100,105,110,115],{"title":76,"path":77,"stem":78,"icon":79},"The code editor","\u002Fshaders\u002Fcode-editor","3.shaders\u002F1.code-editor","i-lucide-square-code",{"title":81,"path":82,"stem":83,"icon":84},"The ISF header","\u002Fshaders\u002Fisf-header","3.shaders\u002F2.isf-header","i-lucide-braces",{"title":86,"path":87,"stem":88,"icon":89},"The preview","\u002Fshaders\u002Fpreview","3.shaders\u002F3.preview","i-lucide-monitor-play",{"title":91,"path":92,"stem":93,"icon":94},"Input controls","\u002Fshaders\u002Finput-controls","3.shaders\u002F4.input-controls","i-lucide-sliders-horizontal",{"title":96,"path":97,"stem":98,"icon":99},"Presets","\u002Fshaders\u002Fpresets","3.shaders\u002F5.presets","i-lucide-bookmark",{"title":101,"path":102,"stem":103,"icon":104},"Console and fixes","\u002Fshaders\u002Fconsole","3.shaders\u002F6.console","i-lucide-terminal",{"title":106,"path":107,"stem":108,"icon":109},"Shader templates","\u002Fshaders\u002Ftemplates","3.shaders\u002F7.templates","i-lucide-layout-template",{"title":111,"path":112,"stem":113,"icon":114},"Vertex shaders","\u002Fshaders\u002Fvertex-shaders","3.shaders\u002F8.vertex-shaders","i-lucide-shapes",{"title":116,"path":117,"stem":118,"icon":119},"Font images","\u002Fshaders\u002Ffont-images","3.shaders\u002F9.font-images","i-lucide-type",{"title":121,"path":122,"stem":123,"children":124,"page":34},"Pipelines","\u002Fpipelines","4.pipelines",[125,129,134,139,144,149],{"title":126,"path":127,"stem":128,"icon":28},"Concepts","\u002Fpipelines\u002Fconcepts","4.pipelines\u002F1.concepts",{"title":130,"path":131,"stem":132,"icon":133},"Editing a graph","\u002Fpipelines\u002Fediting-graphs","4.pipelines\u002F2.editing-graphs","i-lucide-mouse-pointer-click",{"title":135,"path":136,"stem":137,"icon":138},"Node catalog","\u002Fpipelines\u002Fnode-catalog","4.pipelines\u002F3.node-catalog","i-lucide-boxes",{"title":140,"path":141,"stem":142,"icon":143},"Toolbox and snippets","\u002Fpipelines\u002Fsnippets-and-toolbox","4.pipelines\u002F4.snippets-and-toolbox","i-lucide-toolbox",{"title":145,"path":146,"stem":147,"icon":148},"Composing","\u002Fpipelines\u002Fcomposing","4.pipelines\u002F5.composing","i-lucide-combine",{"title":150,"path":151,"stem":152,"icon":153},"Macros","\u002Fpipelines\u002Fmacros","4.pipelines\u002F6.macros","i-lucide-package-plus",{"title":155,"path":156,"stem":157,"children":158,"page":34},"Media and inputs","\u002Fmedia","5.media",[159,164,168,173,178],{"title":160,"path":161,"stem":162,"icon":163},"Resources","\u002Fmedia\u002Fresources","5.media\u002F1.resources","i-lucide-clapperboard",{"title":165,"path":166,"stem":167,"icon":163},"Export a video","\u002Fmedia\u002Fvideo-export","5.media\u002F2.video-export",{"title":169,"path":170,"stem":171,"icon":172},"Videos and sounds","\u002Fmedia\u002Fvideos-and-sounds","5.media\u002F3.videos-and-sounds","i-lucide-audio-lines",{"title":174,"path":175,"stem":176,"icon":177},"MIDI","\u002Fmedia\u002Fmidi","5.media\u002F4.midi","i-lucide-sliders-vertical",{"title":179,"path":180,"stem":181,"icon":182},"OSC","\u002Fmedia\u002Fosc","5.media\u002F5.osc","i-lucide-radio-tower",{"title":184,"path":185,"stem":186,"children":187,"page":34},"Workspace","\u002Fworkspace","6.workspace",[188,193,198,203,208,213],{"title":189,"path":190,"stem":191,"icon":192},"Tabs and layout","\u002Fworkspace\u002Ftabs-and-layout","6.workspace\u002F1.tabs-and-layout","i-lucide-columns-2",{"title":194,"path":195,"stem":196,"icon":197},"History and clipboard","\u002Fworkspace\u002Fhistory-and-clipboard","6.workspace\u002F2.history-and-clipboard","i-lucide-history",{"title":199,"path":200,"stem":201,"icon":202},"Saving and drafts","\u002Fworkspace\u002Fsaving","6.workspace\u002F3.saving","i-lucide-save",{"title":204,"path":205,"stem":206,"icon":207},"Shortcuts","\u002Fworkspace\u002Fshortcuts","6.workspace\u002F4.shortcuts","i-lucide-keyboard",{"title":209,"path":210,"stem":211,"icon":212},"Preferences","\u002Fworkspace\u002Fpreferences","6.workspace\u002F5.preferences","i-lucide-settings",{"title":56,"path":214,"stem":215,"icon":216},"\u002Fworkspace\u002Fsharing","6.workspace\u002F6.sharing","i-lucide-share-2",{"title":218,"path":219,"stem":220,"children":221,"page":34},"Reference","\u002Freference","7.reference",[222,226,231,236,241],{"title":223,"path":224,"stem":225,"icon":84},"ISF header","\u002Freference\u002Fisf-header-reference","7.reference\u002F1.isf-header-reference",{"title":227,"path":228,"stem":229,"icon":230},"File formats","\u002Freference\u002Ffile-formats","7.reference\u002F2.file-formats","i-lucide-file-archive",{"title":232,"path":233,"stem":234,"icon":235},"Troubleshooting","\u002Freference\u002Ftroubleshooting","7.reference\u002F3.troubleshooting","i-lucide-life-buoy",{"title":237,"path":238,"stem":239,"icon":240},"ISF specifications","\u002Freference\u002Fisf-specifications","7.reference\u002F4.isf-specifications","i-lucide-book-marked",{"title":242,"path":243,"stem":244,"icon":245},"Pipeline text","\u002Freference\u002Fpipeline-text","7.reference\u002F5.pipeline-text","i-lucide-bot-message-square",{"title":247,"path":248,"stem":249,"children":250,"page":34},"For developers","\u002Fruntime","8.runtime",[251,256],{"title":252,"path":253,"stem":254,"icon":255},"Playing pipelines and shaders","\u002Fruntime\u002Fplaying-pipelines","8.runtime\u002F1.playing-pipelines","i-lucide-play",{"title":257,"path":258,"stem":259,"icon":260},"Listening to sound","\u002Fruntime\u002Flistening-to-sound","8.runtime\u002F2.listening-to-sound","i-lucide-audio-waveform",{"title":262,"path":263,"stem":264,"children":265,"page":34},"Licensing","\u002Flicensing","9.licensing",[266],{"title":267,"path":268,"stem":269,"icon":270},"Pricing","\u002Flicensing\u002Fpricing","9.licensing\u002F1.pricing","i-lucide-badge-euro",{"id":272,"title":242,"body":273,"description":1482,"extension":1483,"links":1484,"meta":1485,"navigation":1486,"path":243,"seo":1487,"stem":244,"__hash__":1488},"docs\u002F7.reference\u002F5.pipeline-text.md",{"type":274,"value":275,"toc":1459},"minimark",[276,285,290,311,334,341,346,359,367,371,378,385,388,395,402,407,411,421,425,454,466,470,492,496,499,503,512,557,561,566,961,965,971,1056,1060,1127,1131,1145,1149,1191,1224,1230,1234,1452,1456],[277,278,279,280,284],"p",{},"A pipeline can be shown as ",[281,282,283],"strong",{},"text",": one line per node and one per link. You can paste it in an AI assistant (ChatGPT, Claude, Copilot…) so that it reads your pipeline, and the assistant can answer in the same format. It is a Pro feature, trial included.",[286,287,289],"h2",{"id":288},"ask-an-assistant","Ask an assistant",[291,292,293,301,304],"ol",{},[294,295,296,297,300],"li",{},"Open a pipeline and click ",[281,298,299],{},"View pipeline as text"," in its toolbar.",[294,302,303],{},"Write what you want in the field under the text: explain this pipeline, find what is wrong, add a vignette…",[294,305,306,307,310],{},"Click ",[281,308,309],{},"Copy for AI"," and paste in the assistant.",[277,312,313,314,317,318,321,322,325,326,329,330,333],{},"The copied prompt has everything the assistant needs to start: what ISF Studio is, the format below with recipes and an example of feedback, your pipeline and your request. It also gives the address of the ",[281,315,316],{},"node catalog"," and of the snippet catalog, which an assistant that can read web pages fetches by itself. If yours cannot, tick ",[281,319,320],{},"Include the list of the node types"," under the text: the prompt then holds every node type, with its ports (a few thousand words). Tick ",[281,323,324],{},"Include the list of the snippets"," for the same reason: the prompt then holds the id and the signature of every snippet of the Toolbox (about 35 KB), and ",[281,327,328],{},"With what each snippet does"," adds the first sentence of each description (about twice that). ",[281,331,332],{},"Copy"," gives the text alone.",[277,335,336],{},[337,338],"img",{"alt":339,"src":340},"A pipeline as text","\u002Fscreenshots\u002Fpipeline-text.png",[342,343,345],"h3",{"id":344},"ask-about-one-group","Ask about one group",[277,347,348,349,352,353,355,356,358],{},"When a group, a loop, a branch or a function is open in the editor, the dialog offers ",[281,350,351],{},"Ask only about the group"," (ticked by default). ",[281,354,309],{}," then gives the assistant what is inside that block, with its ports, and not the rest of the pipeline: a shorter prompt, on the part you are looking at. The text shown in the dialog, and ",[281,357,332],{},", stay the whole pipeline.",[277,360,361,362,366],{},"The assistant answers with the inside of the block, in a ",[363,364,365],"code",{},"pipeline-text-inside"," block. ISF Studio only imports whole pipelines, so you apply that answer by hand. Untick the option to ask about the whole pipeline, which can be imported back.",[286,368,370],{"id":369},"bring-a-pipeline-in","Bring a pipeline in",[277,372,373,374,377],{},"When an assistant or a web page gives you a pipeline in this format, copy it and choose ",[281,375,376],{},"File > Import > Pipeline from Clipboard",". ISF Studio creates a new pipeline in your library, lays it out, and opens it. It is a Pro feature, trial included.",[277,379,380,381,384],{},"To make the pipeline in a folder of the library, right-click the folder and choose ",[281,382,383],{},"Import… > Pipeline from Clipboard…",".",[277,386,387],{},"The files a pipeline points at (a shader, another pipeline, an image) do not have to be where the text says: if no file has that path, ISF Studio looks from the folder you import into, then for a path that ends the same way, then for a file of the same name, the closest one first. The notice that follows the import says which file was taken for which.",[277,389,390,391,394],{},"You can copy the text as it is: a code block from a chat, with sentences around it, or a quoted reply. If it cannot be read, or the graph does not work (a port that does not exist, two types that do not match), a dialog tells you what is wrong and on which line, with a suggestion when there is one. ",[281,392,393],{},"Copy errors for AI"," copies the errors and the text, so that the assistant can fix them.",[277,396,397,398,401],{},"You can import nodes, values, links, groups, loops, branches, functions, Toolbox snippets, the vertex graph, and the shaders, pipelines and images of your library, given by their path from the library root (",[363,399,400],{},"{\"shaderId\": \"Shaders\u002FPlasma.fs\"}","). ISF Studio reads those files as when you drop them on the canvas, and keeps the images in the new pipeline. A snippet that was renamed or moved in an earlier version is still found under its old id. A path that is not in the library is an error, with the nearest names.",[277,403,404,406],{},[281,405,309],{}," also lists the shaders, pipelines and images of your library, so that the assistant knows which files exist. Only the paths are listed. If the assistant gets a shader's inputs wrong, the errors list the right ones.",[286,408,410],{"id":409},"shaders-too","Shaders too",[277,412,413,414,417,418,420],{},"A shader is already text. Click ",[281,415,416],{},"Copy the shader for an AI assistant"," in the toolbar of its editor, write your request, and click ",[281,419,309],{},". The prompt has what an ISF shader is, your shader and the console errors. It is a Pro feature too.",[342,422,424],{"id":423},"turn-a-shader-into-a-pipeline","Turn a shader into a pipeline",[277,426,427,428,431,432,435,436,439,440,443,444,447,448,451,452,384],{},"Tick ",[281,429,430],{},"Ask for a pipeline of this shader"," in the same dialog. The prompt then also has the format of the pipeline text, the files of your library and the path of the shader, and asks the assistant to cut the shader so that the graph can be read: its inputs become input nodes, each function becomes a snippet node written with its own code, a short ",[363,433,434],{},"main()"," becomes nodes of the catalog, and its passes become pass nodes. A buffer a function reads (a persistent pass, for example) is a ",[363,437,438],{},"sampler2D"," parameter that a ",[363,441,442],{},"read-pass"," node feeds. By default the assistant is asked to cut all of it, even if it has to rewrite some code, and to say what it could not do. Tick ",[281,445,446],{},"Allow the shader itself where it cannot be cut"," to let it plug the shader in with a ",[363,449,450],{},"shader-isf"," node for that part. Copy its answer and choose ",[281,453,376],{},[277,455,456,457,459,460,462,463,465],{},"The result is an attempt, not a conversion: compare the picture with the shader's. A snippet written with its own code is a function of the pipeline: its code is in the text, so ",[281,458,299],{}," shows it, and an assistant can change it. As with a pipeline, tick ",[281,461,320],{}," and ",[281,464,324],{}," if your assistant cannot read web pages.",[286,467,469],{"id":468},"for-assistants","For assistants",[277,471,472,473,477,478,482,483,462,487,491],{},"The nodes and snippets are listed in files made for machines: the ",[474,475,316],"a",{"href":476},"\u002Fnode-catalog.json"," (every type, its ports and values), the ",[474,479,481],{"href":480},"\u002Fsnippets-catalog.json","snippet catalog",", and ",[474,484,486],{"href":485},"\u002Fllms.txt","llms.txt",[474,488,490],{"href":489},"\u002Fllms-full.txt","llms-full.txt",", which hold the docs and both catalogs in one text.",[286,493,495],{"id":494},"the-format","The format",[277,497,498],{},"A pipeline is a graph of nodes. In ISF Studio it is drawn on a canvas; this text is the same graph, one line per node and per link. The coordinates are not in it: the editor lays the graph out.",[342,500,502],{"id":501},"shape-of-the-text","Shape of the text",[504,505,509],"pre",{"className":506,"code":508,"language":283},[507],"language-text","pipeline-text 1\ntitle \"Mixing colors\"\nmetadata {\"CREDIT\": \"Me\", \"CATEGORIES\": [\"Color\"]}\nvalues {\"mixAmount\": 0.5}\n\ngraph fragment\n  node n1 input-color {\"input\": {\"NAME\": \"colorOne\", \"TYPE\": \"color\", \"DEFAULT\": [1, 0, 0, 1]}}\n  node n2 input-color {\"input\": {\"NAME\": \"colorTwo\", \"TYPE\": \"color\", \"DEFAULT\": [0, 0, 1, 1]}}\n  node n3 math-add-vec4  # a: vec4, b: vec4 -> result: vec4\n  node n4 output-color  # fragmentValue: vec4 -> (nothing)\n  link n1.value -> n3.a\n  link n2.value -> n3.b\n  link n3.result -> n4.fragmentValue\n\ngraph vertex\n  ...\n",[363,510,508],{"__ignoreMap":511},"",[513,514,515,534,544,554],"ul",{},[294,516,517,518,521,522,525,526,529,530,533],{},"The first line is ",[363,519,520],{},"pipeline-text 1",". ",[363,523,524],{},"title",", ",[363,527,528],{},"metadata"," (the words of the ISF header) and ",[363,531,532],{},"values"," (what the inputs are set to, by input name) are optional.",[294,535,536,539,540,543],{},[363,537,538],{},"graph fragment"," holds the fragment graph, and is always there. ",[363,541,542],{},"graph vertex"," holds the vertex graph, when the pipeline has one.",[294,545,546,547,550,551,553],{},"A line is a keyword, then its words. Blanks at the start are free. A line that starts with ",[363,548,549],{},"#"," is a comment, and so is the end of a line after ",[363,552,549],{}," (the app writes the ports of a node there: read them, they are not needed to write one).",[294,555,556],{},"Strings and objects are JSON, on one line.",[342,558,560],{"id":559},"nodes","Nodes",[277,562,563],{},[363,564,565],{},"node \u003Cid> \u003Ctype> [\"label\"] [{data}] [begin]",[513,567,568,578,621,627,747,798,926,952],{},[294,569,570,573,574,577],{},[363,571,572],{},"id",": a name you choose (letters, digits, ",[363,575,576],{},"_","), unique in the whole graph. The app writes n1, n2…",[294,579,580,583,584,525,587,525,590,525,593,525,596,525,599,602,603,462,606,609,610,615,616,620],{},[363,581,582],{},"type",": the exact name of the node's definition (",[363,585,586],{},"value-float",[363,588,589],{},"math-multiply-vec3-float",[363,591,592],{},"glsl-common-mix-vec3-vec3-float",[363,594,595],{},"input-float",[363,597,598],{},"output-color",[363,600,601],{},"snippet","…). It is not a label: there is one type for each combination of types a node works with, so ",[363,604,605],{},"math-add-vec4",[363,607,608],{},"math-add-float"," are different nodes. Use the types that appear in the pipeline you are given or in the node catalog (",[474,611,612],{"href":612,"rel":613},"https:\u002F\u002Fisf-studio.app\u002Fnode-catalog.json",[614],"nofollow",", one line for each in ",[474,617,618],{"href":618,"rel":619},"https:\u002F\u002Fisf-studio.app\u002Fllms-full.txt",[614],"); do not invent one.",[294,622,623,626],{},[363,624,625],{},"\"label\"",": only when the node was renamed.",[294,628,629,632,633,636,637,525,639,636,642,525,645,648,649,525,652,525,655,525,658,525,661,525,664,667,668,670,671,674,675,678,679,683,684,687,688,691,692,694,695,698,699,702,703,706,707,710,711,713,714,525,717,720,721,636,723,725,726,729,730,733,734,636,737,525,740,636,743,746],{},[363,630,631],{},"{data}",": what the node holds. Examples: ",[363,634,635],{},"{\"value\": 0.5}"," for ",[363,638,586],{},[363,640,641],{},"{\"value\": [1, 0.5, 0]}",[363,643,644],{},"value-vec3",[363,646,647],{},"{\"input\": {\"NAME\": \"speed\", \"TYPE\": \"float\", \"DEFAULT\": 0.5, \"MIN\": 0, \"MAX\": 2}}"," for an input (",[363,650,651],{},"NAME",[363,653,654],{},"TYPE",[363,656,657],{},"DEFAULT",[363,659,660],{},"MIN",[363,662,663],{},"MAX",[363,665,666],{},"LABEL"," are those of an ISF input; an input's ",[363,669,651],{}," is what the shader and the controls know it by), ",[363,672,673],{},"{\"snippetId\": \"noise-and-patterns\u002Fnoise\u002Fvalue-noise-2d\"}"," for a snippet of the library (its code comes from the library: its inputs are the parameters of its function and its output is ",[363,676,677],{},"result","; the snippet catalog, ",[474,680,681],{"href":681,"rel":682},"https:\u002F\u002Fisf-studio.app\u002Fsnippets-catalog.json",[614],", gives the id and the signature of each, e.g. ",[363,685,686],{},"float noise2d(vec2 p)",": use the ids it gives, nothing else). A function of your own is a snippet written with its code, and no id: ",[363,689,690],{},"{\"snippetName\": \"Twice\", \"code\": \"float twice(float x) {\\n  return x * 2.0;\\n}\"}"," (one GLSL function: the parameters of its signature are the inputs of the node, and its value is ",[363,693,677],{},"; an ",[363,696,697],{},"out"," parameter is one more output; the code holds the helpers the function calls, written before it, and the constants it uses: two snippets that need the same helper both hold it, and it is declared once; give each function its own name, and write the same code again to use it in two places). With ",[363,700,701],{},"\"mode\": \"define\""," the node only declares the function, and a ",[363,704,705],{},"function-call"," node uses it: link the snippet's ",[363,708,709],{},"fn"," to the call's ",[363,712,709],{},", then give the call the arguments. A snippet's code may read the built-ins (",[363,715,716],{},"TIME",[363,718,719],{},"RENDERSIZE","…) but not the inputs of the pipeline: pass them as parameters. A shader, a pipeline or an image of the user's own library is told by its path from the root of the library: ",[363,722,400],{},[363,724,450],{}," (a ",[363,727,728],{},".fs"," or a ",[363,731,732],{},".istshader","), ",[363,735,736],{},"{\"pipelineId\": \"Pipelines\u002FGlow.istpipe\"}",[363,738,739],{},"pipeline-isf",[363,741,742],{},"{\"path\": \"Images\u002Fcity.jpg\"}",[363,744,745],{},"imported-image",". Their ports come from the file (a shader's inputs, for example), and only the files the user lists exist.",[294,748,749,750,525,753,755,756,759,760,763,764,767,768,771,772,775,776,525,779,525,782,785,786,789,790,793,794,797],{},"A ",[363,751,752],{},"comment",[363,754,283],{}," or ",[363,757,758],{},"todo"," note can be put on a node of the same graph, and the compiler writes it above that node in the shader (as ",[363,761,762],{},"\u002F\u002F"," lines). Write it as ",[363,765,766],{},"{\"text\": \"What it does\", \"attachTo\": \"n3\", \"side\": \"top\", \"width\": 220, \"height\": 60}"," (",[363,769,770],{},"side"," is ",[363,773,774],{},"top"," by default, or ",[363,777,778],{},"bottom",[363,780,781],{},"left",[363,783,784],{},"right",": where the note is drawn; the notes of one side are stacked), or with a link, ",[363,787,788],{},"link c1.text -> n3.note"," (the app writes it so). A node takes any number of notes; a note is on one node. It goes on a node that computes, or on a container, a group, a function, a loop or a branch (the compiler writes it above what the container holds, or above its declaration for a function): not on a node at the edge of a container (a ",[363,791,792],{},"loop-input",", a ",[363,795,796],{},"function-parameter","…), or on another note.",[294,799,800,462,803,806,807,809,810,813,814,817,818,820,821,823,824,827,828,831,832,834,835,838,839,842,843,845,846,849,850,852,853,856,857,462,860,863,864,866,867,869,870,873,874,525,877,880,881,883,884,887,888,891,892,895,896,899,900,902,903,906,907,910,911,914,915,918,919,921,922,462,924,384],{},[281,801,802],{},"Draw Text",[281,804,805],{},"Typewriter"," are not node types of their own: they are ",[363,808,601],{}," nodes with no id, ",[363,811,812],{},"\"textInput\": true"," and a ",[363,815,816],{},"snippetName",", fragment graphs only. The string they draw comes from a ",[363,819,283],{}," node linked to their ",[363,822,283],{}," input (",[363,825,826],{},"link t1.text -> d1.text",", with ",[363,829,830],{},"t1"," a ",[363,833,283],{}," node, ",[363,836,837],{},"{\"text\": \"Hello\"}","), and the app writes their real code from it when the pipeline is compiled: write only a stub of the function, with the right signature and a body that returns 0. Draw Text, ",[363,840,841],{},"{\"snippetName\": \"Draw Text\", \"textInput\": true, \"code\": \"float drawText(sampler2D font, vec2 p, float size, float spacing, float lineSpacing, out float sdf, out vec2 aabbMin, out vec2 aabbMax) {\\n  sdf = 0.0;\\n  aabbMin = vec2(0.0);\\n  aabbMax = vec2(0.0);\\n  return 0.0;\\n}\"}",": inputs ",[363,844,283],{}," (string), ",[363,847,848],{},"font"," (the image of a font), ",[363,851,277],{}," (the pixel, in pixels from the start of the first line), ",[363,854,855],{},"size"," (the em, in pixels), ",[363,858,859],{},"spacing",[363,861,862],{},"lineSpacing"," (added to each character and each line, as a fraction of ",[363,865,855],{},"); outputs ",[363,868,677],{}," (the coverage, 0 to 1), ",[363,871,872],{},"sdf"," (the distance in pixels, above 0 inside) and ",[363,875,876],{},"aabbMin",[363,878,879],{},"aabbMax"," (the box of the text, in pixels as ",[363,882,277],{}," is). Typewriter writes how much of the same text is typed, to mask what Draw Text draws: its function must be named ",[363,885,886],{},"typewriter…"," (the name is what tells it from Draw Text), ",[363,889,890],{},"{\"snippetName\": \"Typewriter\", \"textInput\": true, \"code\": \"float typewriterText(sampler2D font, vec2 p, float size, float spacing, float lineSpacing, float time, float speed, out float characters, out vec2 penEnd, out float index, out vec2 cell) {\\n  characters = 0.0;\\n  penEnd = vec2(0.0);\\n  index = -1.0;\\n  cell = vec2(0.0);\\n  return 0.0;\\n}\"}",": the same inputs, plus ",[363,893,894],{},"time"," (seconds since the typing starts) and ",[363,897,898],{},"speed"," (characters a second); outputs ",[363,901,677],{}," (1 where the text is written, 0 elsewhere), ",[363,904,905],{},"characters"," (its length), ",[363,908,909],{},"penEnd"," (where the pen is after it), ",[363,912,913],{},"index"," (the number of the character under the pixel, -1 where there is none) and ",[363,916,917],{},"cell"," (where the pixel lies in its cell). Both read the same ",[363,920,283],{}," and the same ",[363,923,848],{},[363,925,277],{},[294,927,749,928,931,932,935,936,938,939,941,942,767,945,948,949,951],{},[363,929,930],{},"send"," and its ",[363,933,934],{},"receive"," nodes share a channel by its name: a ",[363,937,934],{}," reads the ",[363,940,930],{}," of its graph that has the same ",[363,943,944],{},"channelName",[363,946,947],{},"{\"channelName\": \"baseColor\"}"," on both); the channels of a graph have different names. No id ties them, and no link: the ",[363,950,934],{}," has no input.",[294,953,954,957,958,384],{},[363,955,956],{},"begin",": the node holds a graph of its own (a group, a loop, a function). Its nodes and links follow, until a line that is only ",[363,959,960],{},"end",[342,962,964],{"id":963},"links","Links",[277,966,967,970],{},[363,968,969],{},"link \u003Cid>.\u003Cport> -> \u003Cid>.\u003Cport>",": from an output port (src) of a node to an input port (sink) of another.",[513,972,973,1000,1003,1053],{},[294,974,975,976,979,980,983,984,525,987,990,991,755,993,996,997,384],{},"A port is written by its name, as in the comment of its node (",[363,977,978],{},"n3.result","). If a node has two ports of one name, the first is ",[363,981,982],{},"name"," and the next ",[363,985,986],{},"name~2",[363,988,989],{},"name~3",". Any character that is not a letter, a digit, ",[363,992,576],{},[363,994,995],{},"-"," in a name is written ",[363,998,999],{},"%XX",[294,1001,1002],{},"A link joins two nodes of the same graph (the same block). A link to a group, a loop or a function goes to its own ports, outside; the nodes inside are linked inside.",[294,1004,1005,1006,1009,1010,1013,1014,1017,1018,1021,1022,1025,1026,1029,1030,462,1033,1036,1037,1039,1040,755,1043,1025,1046,1048,1049,1052],{},"The types of the two ports must be the same: to join a vec3 to a vec4 insert a conversion node (",[363,1007,1008],{},"convert-vec3-vec4","). A few types are the same under another name and join with no node: ",[363,1011,1012],{},"color"," is a vec4, ",[363,1015,1016],{},"point2D"," a vec2, ",[363,1019,1020],{},"event"," a bool (an ",[363,1023,1024],{},"input-event"," feeds a ",[363,1027,1028],{},"bool"," parameter of a snippet), and ",[363,1031,1032],{},"audio",[363,1034,1035],{},"audioFFT"," are images, that is ",[363,1038,438],{}," (an ",[363,1041,1042],{},"input-audio",[363,1044,1045],{},"input-audiofft",[363,1047,438],{}," parameter of a snippet, and is read with ",[363,1050,1051],{},"IMG_NORM_PIXEL"," there). An input port takes one link, unless it is marked as taking several.",[294,1054,1055],{},"Some ports take the type of what is linked to them, so the type in a comment can change once a link is made.",[342,1057,1059],{"id":1058},"groups-loops-and-functions","Groups, loops and functions",[277,1061,1062,1063,1065,1066,462,1069,1072,1073,525,1076,525,1078,525,1081,1084,1085,462,1088,1091,1092,1095,1096,1099,1100,1103,1104,1107,1108,462,1110,1113,1114,1116,1117,462,1120,1123,1124,1126],{},"The node has ",[363,1064,956],{},", and its inside holds boundary nodes: ",[363,1067,1068],{},"group-input",[363,1070,1071],{},"group-output"," for a group (",[363,1074,1075],{},"function-input",[363,1077,796],{},[363,1079,1080],{},"function-return",[363,1082,1083],{},"function-output"," for a function; ",[363,1086,1087],{},"branch-input",[363,1089,1090],{},"branch-output",", which share a ",[363,1093,1094],{},"\"pairId\"",", for a loop). The data of a boundary node gives the name of the port it makes on the outside: ",[363,1097,1098],{},"{\"portName\": \"offset\"}",". The ports of the container are made from them, so write the inside first and link the container after. For a function's parameters and returns and the channels of a loop, ",[363,1101,1102],{},"\"portType\""," gives the type of the port (",[363,1105,1106],{},"{\"portName\": \"x\", \"portType\": \"float\"}","), and the ",[363,1109,792],{},[363,1111,1112],{},"loop-output"," of one channel share a ",[363,1115,1094],{},", which is unique in the whole text, as an id of a node is (two loops never use the same one: give each loop its own, ",[363,1118,1119],{},"\"marchT\"",[363,1121,1122],{},"\"shadowT\"","). A loop comes with its iterator, its bound and its test: write what the loop of the pipeline you are given holds, and link the nodes the same way. The text of a function call names the function it calls by the link into its ",[363,1125,709],{}," port.",[342,1128,1130],{"id":1129},"the-ends-of-a-pipeline","The ends of a pipeline",[277,1132,1133,1134,1136,1137,1140,1141,1144],{},"A fragment graph ends in an ",[363,1135,598],{}," node (",[363,1138,1139],{},"gl_FragColor",", a vec4): link what the pipeline draws to it. The inputs of the pipeline are the ",[363,1142,1143],{},"input-*"," nodes: they become the controls of the window.",[286,1146,1148],{"id":1147},"passes-feedback-and-sizes","Passes, feedback and sizes",[277,1150,749,1151,1154,1155,1157,1158,1161,1162,521,1165,1168,1169,1172,1173,1176,1177,462,1180,1183,1184,462,1187,1190],{},[363,1152,1153],{},"pass"," node draws what is linked to its ",[363,1156,1012],{}," port (a vec4) into an image of its own, and gives that image at ",[363,1159,1160],{},"texture",". Its data names it and sets it, everything optional: ",[363,1163,1164],{},"{\"target\": \"trail\", \"persistent\": true, \"float\": true, \"width\": \"$WIDTH\u002F2\", \"height\": \"$HEIGHT\u002F2\"}",[363,1166,1167],{},"target"," is its name, ",[363,1170,1171],{},"persistent"," keeps the image from one frame to the next, ",[363,1174,1175],{},"float"," makes it 32-bit, ",[363,1178,1179],{},"width",[363,1181,1182],{},"height"," are ISF expressions (",[363,1185,1186],{},"$WIDTH",[363,1188,1189],{},"$HEIGHT"," are the size of the output).",[277,1192,749,1193,834,1195,1198,1199,1201,1202,1205,1206,1209,1210,1212,1213,1216,1217,1220,1221,1223],{},[363,1194,442],{},[363,1196,1197],{},"{\"target\": \"trail\"}",", gives at ",[363,1200,1160],{}," the image of the pass of that name, wherever it is in the graph. For a persistent pass it is the image drawn at the previous frame: that is how trails and feedback are made. An image is read as a color with ",[363,1203,1204],{},"img-this-norm-pixel"," (the pixel being drawn: ",[363,1207,1208],{},"image"," -> ",[363,1211,1012],{},") or ",[363,1214,1215],{},"img-norm-pixel"," (a coordinate from 0 to 1 at ",[363,1218,1219],{},"coordinate","). What is linked to ",[363,1222,598],{}," is drawn last. A trail, the brightest of the image and of the faded previous frame:",[504,1225,1228],{"className":1226,"code":1227,"language":283},[507],"graph fragment\n  node img input-image {\"input\": {\"NAME\": \"inputImage\", \"TYPE\": \"image\"}}\n  node fade input-float {\"input\": {\"NAME\": \"fade\", \"TYPE\": \"float\", \"DEFAULT\": 0.95, \"MIN\": 0, \"MAX\": 1}}\n  node cur img-this-norm-pixel\n  node prev read-pass {\"target\": \"trail\"}\n  node prevPx img-this-norm-pixel\n  node faded math-multiply-vec4-float\n  node keep glsl-common-max-vec4-vec4\n  node trail pass {\"target\": \"trail\", \"persistent\": true}\n  node show img-this-norm-pixel\n  node out output-color\n  link img.value -> cur.image\n  link prev.texture -> prevPx.image\n  link prevPx.color -> faded.a\n  link fade.value -> faded.b\n  link cur.color -> keep.a\n  link faded.result -> keep.b\n  link keep.result -> trail.color\n  link trail.texture -> show.image\n  link show.color -> out.fragmentValue\n",[363,1229,1227],{"__ignoreMap":511},[286,1231,1233],{"id":1232},"recipes","Recipes",[513,1235,1236,1261,1282,1330,1357,1375,1388,1410,1442],{},[294,1237,1238,1241,1242,1245,1246,1249,1250,462,1253,1256,1257,1260],{},[281,1239,1240],{},"What a pipeline is."," ISF Studio files a pipeline by its image inputs: with none it is a generator, with an ",[363,1243,1244],{},"input-image"," named ",[363,1247,1248],{},"inputImage"," a filter, with ",[363,1251,1252],{},"startImage",[363,1254,1255],{},"endImage"," (and a ",[363,1258,1259],{},"progress"," float from 0 to 1) a transition. Name the inputs so.",[294,1262,1263,1266,1267,1270,1271,1274,1275,729,1278,1281],{},[281,1264,1265],{},"Time."," ",[363,1268,1269],{},"isf-time"," is the seconds since the start (a float). Multiply it by a speed input (",[363,1272,1273],{},"math-multiply-float",") before a ",[363,1276,1277],{},"glsl-trigonometry-sin-float",[363,1279,1280],{},"glsl-common-fract-float",", so that the user can change the speed.",[294,1283,1284,1266,1287,1290,1291,1294,1295,1298,1299,525,1302,1305,1306,1308,1309,1312,1313,1316,1317,767,1320,462,1323,1326,1327,1329],{},[281,1285,1286],{},"Coordinates.",[363,1288,1289],{},"isf-frag-norm-coord"," is the position of the pixel from 0 to 1 (a vec2, the origin at the bottom left). Centered: ",[363,1292,1293],{},"math-subtract-vec2-float"," with 0.5. With the right aspect: ",[363,1296,1297],{},"isf-rendersize"," (the size in pixels, a vec2) -> ",[363,1300,1301],{},"split-vec2",[363,1303,1304],{},"math-divide-float"," for x \u002F y, multiply the centered x by it (",[363,1307,1273],{},"), and ",[363,1310,1311],{},"compose-vec2"," the two back. The distance to the center is ",[363,1314,1315],{},"glsl-vector-length-vec2",". The snippet ",[363,1318,1319],{},"space-and-camera\u002Fcoordinates\u002Fcentered-aspect-uv",[363,1321,1322],{},"uv",[363,1324,1325],{},"viewportSize",", the ",[363,1328,1297],{},") does all of that in one node: use it, and multiply by 2 for coordinates from -1 to 1 in height.",[294,1331,1332,1266,1335,1338,1339,462,1341,1344,1345,1348,1349,1352,1353,1356],{},[281,1333,1334],{},"A soft edge.",[363,1336,1337],{},"glsl-common-smoothstep-float-float-float"," takes the two edges at ",[363,1340,474],{},[363,1342,1343],{},"b"," and the value at ",[363,1346,1347],{},"c",". Its result is the ",[363,1350,1351],{},"amount"," of a ",[363,1354,1355],{},"glsl-common-mix-vec4-vec4-float"," between two colors.",[294,1358,1359,1362,1363,525,1366,1368,1369,767,1371,1374],{},[281,1360,1361],{},"Colors"," are vec4 (",[363,1364,1365],{},"input-color",[363,1367,598],{},"). To make one from a vec3 use ",[363,1370,1008],{},[363,1372,1373],{},"w"," is the alpha, 1 for opaque).",[294,1376,1377,1380,1381,1383,1384,1387],{},[281,1378,1379],{},"Few nodes."," Look in the snippets before writing a chain of arithmetic nodes: there is one for centered coordinates, for repeating or tiling a space, for a palette, a hash, a rotation, a glow. A formula of more than four or five operations is one snippet written with its own code (one GLSL function, see the data of a ",[363,1382,601],{}," node), not a chain of ",[363,1385,1386],{},"math-*"," nodes: a pipeline of a hundred nodes is hard to read and to change.",[294,1389,1390,1393,1394,525,1396,1398,1399,1401,1402,1404,1405,1407,1408,384],{},[281,1391,1392],{},"Inside a loop."," A snippet node and the constant nodes (",[363,1395,586],{},[363,1397,644],{},"…) sit in the body of the loop and are called there: do not pass a function in through a ",[363,1400,792],{}," to call it. Only what comes from outside the loop (an input of the pipeline, the result of another node) goes in through a ",[363,1403,792],{},"; what changes from one turn to the next goes out through the ",[363,1406,1112],{}," of the same ",[363,1409,1094],{},[294,1411,1412,1415,1416,1418,1419,1421,1422,1424,1425,462,1427,1429,1430,1433,1434,1437,1438,1441],{},[281,1413,1414],{},"Controls."," Every ",[363,1417,1143],{}," is a control of the window: give it a ",[363,1420,651],{}," in camelCase, a ",[363,1423,657],{},", and a ",[363,1426,660],{},[363,1428,663],{}," for a float. A ",[363,1431,1432],{},"long"," input is a menu: it needs ",[363,1435,1436],{},"VALUES"," (the whole numbers) and ",[363,1439,1440],{},"LABELS"," (their names, same count), or it shows nothing. A pipeline with no input has nothing to adjust.",[294,1443,1444,1447,1448,1451],{},[281,1445,1446],{},"Check the types."," A float and a vec2 are not joined directly: take the node whose name says both (",[363,1449,1450],{},"math-multiply-vec2-float","), or convert. When a link is refused the error says why: write the pipeline again with it fixed.",[342,1453,1455],{"id":1454},"what-the-text-does-not-tell","What the text does not tell",[277,1457,1458],{},"Coordinates, internal ids, the code of a snippet of the library, a shader or a sub-pipeline (only where to find it), the bytes of an image. The code of a snippet of your own is in the text. A node that does not appear in the text does not exist.",{"title":511,"searchDepth":1460,"depth":1460,"links":1461},2,[1462,1466,1467,1470,1471,1478,1479],{"id":288,"depth":1460,"text":289,"children":1463},[1464],{"id":344,"depth":1465,"text":345},3,{"id":369,"depth":1460,"text":370},{"id":409,"depth":1460,"text":410,"children":1468},[1469],{"id":423,"depth":1465,"text":424},{"id":468,"depth":1460,"text":469},{"id":494,"depth":1460,"text":495,"children":1472},[1473,1474,1475,1476,1477],{"id":501,"depth":1465,"text":502},{"id":559,"depth":1465,"text":560},{"id":963,"depth":1465,"text":964},{"id":1058,"depth":1465,"text":1059},{"id":1129,"depth":1465,"text":1130},{"id":1147,"depth":1460,"text":1148},{"id":1232,"depth":1460,"text":1233,"children":1480},[1481],{"id":1454,"depth":1465,"text":1455},"A pipeline written as text, to ask an assistant about it: how to copy it, and the format it is written in.","md",null,{},{"icon":245,"title":242},{"title":242,"description":1482},"7zmm-v20g01OdbjVLQygDTAf_G67IDP0k5Yk2SrR6Wo",[1490,1492],{"title":237,"path":238,"stem":239,"description":1491,"icon":240,"children":-1},"What ISF Studio reads that the ISF 2.0 specification does not describe.",{"title":252,"path":253,"stem":254,"description":1493,"icon":255,"children":-1},"Play a pipeline, a shader bundle or a .fs\u002F.vs pair on a canvas, in any web page, with IsfRenderer.",1796047427481]