Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Make and import libraries in GLSL?

General discussion about anything TouchDesigner

Make and import libraries in GLSL?

Postby hmbemba » Fri May 17, 2019 10:14 pm

Hey all,

Just wondering if there is a way to make my own glsl libraries and import them when I'm making projects? - Similar to how python has an import statement?

I'm pretty sure the GLSL API doesn't come with this function natively - just wondering if anyone has found a work around in TD?

Thanks!
hmbemba
 
Posts: 32
Joined: Mon Mar 27, 2017 6:48 pm

Re: Make and import libraries in GLSL?

Postby malcolm » Mon May 20, 2019 10:51 pm

#include statements are supported in GLSL via an extension, so you can use those. They use either relative or absolute paths to other nodes in the network.
User avatar
malcolm
Staff
 
Posts: 4400
Joined: Tue Nov 13, 2007 1:11 am

Re: Make and import libraries in GLSL?

Postby hmbemba » Mon Jun 03, 2019 7:24 pm

Great thanks!
hmbemba
 
Posts: 32
Joined: Mon Mar 27, 2017 6:48 pm


Return to General TouchDesigner Discussion

Who is online

Users browsing this forum: puck and 14 guests