[{"data":1,"prerenderedAt":503},["ShallowReactive",2],{"navigation_docs":3,"-shaders-vertex-shaders":271,"-shaders-vertex-shaders-surround":498},[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":111,"body":273,"description":491,"extension":492,"links":493,"meta":494,"navigation":495,"path":112,"seo":496,"stem":113,"__hash__":497},"docs\u002F3.shaders\u002F8.vertex-shaders.md",{"type":274,"value":275,"toc":482},"minimark",[276,289,306,311,330,333,337,375,379,406,410,434,447,455,459],[277,278,279,280,284,285,288],"p",{},"An ISF shader can have a ",[281,282,283],"strong",{},"vertex shader"," next to its fragment shader. ISF Studio calls it the ",[281,286,287],{},"vertex companion"," of the shader: the two are one shader, shown as one, and they travel together.",[290,291,292,293,300,301,305],"note",{},"Not every ISF software takes a vertex shader into account: the documentation of ",[294,295,299],"a",{"href":296,"rel":297},"https:\u002F\u002Fresolume.com\u002Fsupport\u002Fen\u002Fisf?wire",[298],"nofollow","Resolume Wire"," says that Wire (version 7.22) does not read them. If an effect that uses one behaves differently in your software, try it without, and note where it works with ",[294,302,304],{"href":303},"\u002Fshaders\u002Fisf-header#tested-in","Tested in",".",[307,308,310],"h2",{"id":309},"how-a-vertex-shader-is-paired","How a vertex shader is paired",[277,312,313,314,318,319,322,323,326,327,305],{},"A ",[315,316,317],"code",{},".vs"," file is the companion of a ",[315,320,321],{},".fs"," file when both are in the same folder and have the same name without the extension, case aside: ",[315,324,325],{},"wave.fs"," and ",[315,328,329],{},"wave.vs",[277,331,332],{},"The vertex shader has no ISF header of its own. The header is the one of the fragment shader, and the inspector keeps showing it whichever source is in front.",[307,334,336],{"id":335},"in-the-explorer","In the explorer",[338,339,340,354,357,369],"ul",{},[341,342,313,343,345,346,349,350,353],"li",{},[315,344,317],{}," has ",[281,347,348],{},"no row of its own",": the fragment shader that owns it carries a ",[281,351,352],{},"vertex badge"," on its right.",[341,355,356],{},"Click the badge to unfold two rows, the fragment source and the vertex source. Each one opens the shader on that source.",[341,358,313,359,361,362,364,365,368],{},[315,360,317],{}," that has no ",[315,363,321],{}," of the same name stays listed on its own, with a warning: ",[281,366,367],{},"Vertex shader without a fragment shader of the same name",". Rename one of the two files to pair them.",[341,370,313,371,374],{},[315,372,373],{},".istshader"," bundle shows an archive badge instead. Unfolding it lists what the archive holds: the fragment shader, the vertex shader if there is one, and the images. The sources open on their tab, the images are only listed.",[307,376,378],{"id":377},"in-the-editor","In the editor",[338,380,381,391,394],{},[341,382,383,384,326,387,390],{},"The switch at the bottom of the editor, ",[281,385,386],{},"FRAGMENT",[281,388,389],{},"VERTEX",", appears only for a shader that has a vertex shader. Without one, there is nothing to switch to.",[341,392,393],{},"The vertex source has no header, so there is no header to fold while it is in front.",[341,395,396,397,400,401,405],{},"The preview plays both sources together. A compile error of either one appears in the ",[294,398,399],{"href":102},"console"," with its line, and an ISF 1 name in the vertex shader comes with the same fix as in the fragment one (see ",[294,402,404],{"href":403},"\u002Fshaders\u002Fconsole#isf-1-shaders","ISF 1 shaders",").",[307,407,409],{"id":408},"adding-and-removing","Adding and removing",[338,411,412,425],{},[341,413,414,417,418,421,422,424],{},[281,415,416],{},"Add Vertex Shader"," creates ",[315,419,420],{},"name.vs"," beside the ",[315,423,321],{}," with the default vertex shader, and opens the shader on it.",[341,426,427,430,431,433],{},[281,428,429],{},"Remove Vertex Shader"," sends the ",[315,432,317],{}," to the Trash. The shader shows its fragment source again.",[277,435,436,437,440,441,443,444,446],{},"Both are in the context menu of the shader. The ",[281,438,439],{},"Edit"," menu has one item for the two: it reads ",[281,442,416],{}," or ",[281,445,429],{}," depending on whether the shader has one, and is greyed out when there is no fragment shader to act on (the shader in front, or the one selected in the explorer).",[338,448,449],{},[341,450,451,452,454],{},"In a ",[315,453,373],{}," bundle, the vertex shader lives in the archive: adding or removing it takes effect when the bundle is saved.",[307,456,458],{"id":457},"moving-copying-and-sharing","Moving, copying and sharing",[277,460,461,462,464,465,467,468,470,471,473,474,478,479,305],{},"The ",[315,463,317],{}," follows its ",[315,466,321],{},": when the fragment shader is renamed, moved, copied, deleted or exported, the vertex shader goes with it, and its open tab follows. A ",[315,469,373],{}," holds both sources and the images in one file (see ",[294,472,56],{"href":57},"). A pipeline that has a ",[294,475,477],{"href":476},"\u002Fpipelines\u002Fediting-graphs#the-vertex-graph","vertex graph"," compiles to a vertex shader as well, kept inside its ",[315,480,481],{},".istpipe",{"title":483,"searchDepth":484,"depth":484,"links":485},"",2,[486,487,488,489,490],{"id":309,"depth":484,"text":310},{"id":335,"depth":484,"text":336},{"id":377,"depth":484,"text":378},{"id":408,"depth":484,"text":409},{"id":457,"depth":484,"text":458},"A vertex shader beside a fragment shader: how the two are paired, shown, edited and shared.","md",null,{},{"icon":114,"title":111},{"title":111,"description":491},"hTjZL6RAZS8dXIRUwcG_nAeMYPzWmCHiRbmnhW4mF1c",[499,501],{"title":106,"path":107,"stem":108,"description":500,"icon":109,"children":-1},"The starting points when you create a shader.",{"title":116,"path":117,"stem":118,"description":502,"icon":119,"children":-1},"Turn a font into an image that any shader can read, and draw text in a shader, in the studio and in an OpenFX plug-in.",1796047426773]