How to access float variable in GLSL TOP?

I’m a bit rusty at Touch Designer, and I’m trying to write my first GLSL shader. How can I pass a float variable to it from a user input parameter on a custom controls container?

I think I found a way by connecting a Parameter Execute DAT to the control, which writes the value into a Text DAT, and then use a Merge DAT to combine that with the shader. But it seems a bit clunky, I’m just wondering if there’s an easier way to pass a float straight into the shader?

You declare a uniform value to pass onto the shader:


image

More:

1 Like

Thank you, that helps