Hi everyone,
Starting out with TD and loving it so far.
What I’d like to do is the following:
Have my main glsl script be able to access functions from other glsl scripts.
So I have my main script and would like to call a function from another (to keep my code tidy!).
Any and all tips would be very welcome.
(I’m using text DATto write my script and the glsl TOP object)
Here’s a technique using local variables: derivative.ca/wiki088/index.php?title=Variables
Basically, make a base called “local” and inside that base you’ll need a table “variables”. It’ll make sense when you see it in this example.
glsl_library_technique.1.toe (4.17 KB)
Thanks a lot for this, gonna study it until the signal flow makes sense.
A quick question or two if i may (noob level here with TD)
- so The text DAT go’s into the BASE object and then to the NULL object. I see that the BASE object adds it’s original text to the incoming text from text1. So what is the NULL object for ?
Hi David,
Just figured out I can zoom into the base object (“local”) and its all pretty clear now.Thanks for your help!!