Chaining and Composition Patterns
Compose Hydra chains with shader transforms, then write the result to an output.
osc(8, 0.1, 0.8).modulate(noise(2), 0.1).out(o1);
src(o1).color(0.9, 0.7, 0.8).out(o0);
render(o0);
In the Playground, pass src(o1) to a JSX mesh with <TriodeMaterial signal={src(o1)} />. Scene Texture Bridge writes a point scene to o1 and uses that rendered output on a sphere in o2. See the scene graph guide for a complete mixed cue.
For embedding, instantiate Triode with makeGlobal: false and access the shader functions through triode.synth. The retained tex.data(...) utility makes textures from typed arrays for use with src(...).