oxium Posted March 29, 2010 Share Posted March 29, 2010 Hey all I'm trying to setup a nice glsl library in order to avoid code duplication Obviously for this kind of task I'd like to use include of header files containing different functions Imagine something like that: phongspec.h blinnspec.h etc.. Anyway I'm sure you see my point.. the issue is that glsl doesn't support #include.. Thanks.. that's really awesome.. Do you have any idea guys ? Looks like I could write my own plugin or something like that and copy/paste the file content each time I find a #include token.. But I'd really like to avoid this kind of crap Maybe there's already solution for this directly inside Houdini ??? Thanks for any help oX Quote Link to comment Share on other sites More sharing options...
edward Posted March 30, 2010 Share Posted March 30, 2010 You could try using a C preprocessor to do #include expansions. Or vcc -E even. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.